AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
AK Python
https://docs.python.org/3.9/whatsnew/3.9.html
Python 3.9 released ( Official documentation )
Check out the new video guys
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()
Code for Amazon price tracker
Share & Support ❤️
#YKYG
Stack uses
Anonymous Quiz
75%
LIFO
25%
FIFO
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?
Anonymous Quiz
22%
Windows vista
32%
Linux
15%
Mac
31%
Windows XP
New video : Url shortner project
from tkinter import *
import tkinter.ttk as ttk
from ttkthemes import ThemedTk
from tkinter import messagebox
import pyshorteners
import webbrowser


def logic():
s=pyshorteners.Shortener()
a=s.tinyurl.short("www.google.com")
messagebox.showinfo("This is your URL",a)

def callback():
url="www.google.com"
webbrowser.open_new(url)

top=ThemedTk(theme="scidgrey")
top.title("AK url shortner")
top.geometry("500x500")
filename=PhotoImage(file="A:\Edits\Link.png")
background_label=Label(top,image=filename)
background_label.place(x=0,y=0,relwidth=1,relheight=1)

b1=ttk.Button(top,text="Click to the open the Link",command=callback).pack()
b2=ttk.Button(top,text="Click to shorten the Url",command=logic).pack()

top.mainloop()
Code for Url shortener project ( Share & support ❤️ )
What is your level in Python?
Anonymous Poll
72%
Beginner
24%
Intermediate
4%
Pro
New video out now !
#YKYG

How many layers are present in OSI model?
Anonymous Quiz
12%
5
27%
6
12%
8
49%
7
New video check out..!