from tkinter import *
import wikipedia
def on_click():
q=get_q.get()
text.insert(INSERT , wikipedia.summary(q))
root=Tk()
root.title("Application title")
question=Label(root,text='Question')
question.pack()
get_q=Entry(root,bd=5)
get_q.pack()
submit=Button(root,text='Search',command=on_click)
submit.pack()
text=Text(root)
text.pack()
root.mainloop()
import wikipedia
def on_click():
q=get_q.get()
text.insert(INSERT , wikipedia.summary(q))
root=Tk()
root.title("Application title")
question=Label(root,text='Question')
question.pack()
get_q=Entry(root,bd=5)
get_q.pack()
submit=Button(root,text='Search',command=on_click)
submit.pack()
text=Text(root)
text.pack()
root.mainloop()
from tkinter import *
from tkinter import messagebox
import pyspeedtest
def logic():
st=pyspeedtest.SpeedTest("www.google.com")
a=(str(st.download()) + "[Bytes per second]")
messagebox.showinfo("Your Download speed:",a)
top=Tk()
top.title('AK speed Test')
top.geometry('100x100')
filename=PhotoImage(file="Path of your image.")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)
b=Button(top,text='Click to see the Internet speed',font=('San serif',20),bg='Yellow',height=1,width=30,command=logic).pack()
top.mainloop()
from tkinter import messagebox
import pyspeedtest
def logic():
st=pyspeedtest.SpeedTest("www.google.com")
a=(str(st.download()) + "[Bytes per second]")
messagebox.showinfo("Your Download speed:",a)
top=Tk()
top.title('AK speed Test')
top.geometry('100x100')
filename=PhotoImage(file="Path of your image.")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)
b=Button(top,text='Click to see the Internet speed',font=('San serif',20),bg='Yellow',height=1,width=30,command=logic).pack()
top.mainloop()
‼️ Amazon price tracker video will be out on tomorrow
Subscribe & stay tuned❤️
Subscribe & stay tuned❤️
AK Python
https://docs.python.org/3.9/whatsnew/3.9.html
Python 3.9 released ( Official documentation )
import requests
from bs4 import BeautifulSoup
headers={
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
}
response=requests.get("Paste your product link",headers=headers)
soup=BeautifulSoup(response.content,'html.parser')
def check_price():
title=soup.find(id="productTitle").get_text()
price=soup.find(id="priceblock_ourprice").get_text().strip()
print("Product name & specs : ",title.strip())
print("Product cost:",price)
check_price()
from bs4 import BeautifulSoup
headers={
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
}
response=requests.get("Paste your product link",headers=headers)
soup=BeautifulSoup(response.content,'html.parser')
def check_price():
title=soup.find(id="productTitle").get_text()
price=soup.find(id="priceblock_ourprice").get_text().strip()
print("Product name & specs : ",title.strip())
print("Product cost:",price)
check_price()
url shortner.gif
13 MB
Url shortner project using python ( Next video👆) Stay tuned❤️
#YKYG
Which one is the first fully supported 64-bit operating system?
Which one is the first fully supported 64-bit operating system?
Anonymous Quiz
22%
Windows vista
32%
Linux
15%
Mac
31%
Windows XP