Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_html():
- global r
- yaustal= {'user-agent':"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0"}
- r = requests.get('https://vm.tiktok.com/pXcCWN', headers = yaustal)
- def get_parse():
- html = r.content
- soup = BS(html, 'html.parser')
- podpiski = soup.find("div", class_ = "share-info")
- h2 = podpiski.find("h2", class_ = "count-infos")
- span = h2.find("span")
- print(podpiski, "\n")
- print(h2, "\n")
- print(span)
- get_html()
- get_parse()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement