mercredi 9 septembre 2020

How do i display google search results page using python [closed]

I am working on a project and i want to display google search results on a window

I tried tkinterhtml and it did not work, my code:-

from tkinterhtml import HtmlFrame
import urllib.request

import tkinter as tk


from tkinterhtml import HtmlFrame

root = tk.Tk()
frame = HtmlFrame(root, horizontal_scrollbar="auto")
frame.grid(sticky=tk.NSEW)

frame.set_content(urllib.request.urlopen("https://www.duckduckgo.com").read().decode())



root.columnconfigure(0, weight=1)
root.rowconfigure(0, weight=1)
root.mainloop()

any python module is fine until it is for windows

the results should be the same as it appears on google search but on a separate window




Aucun commentaire:

Enregistrer un commentaire