Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- import requests
- url = "https://marketplace.tf/shop/blindpolarbear"
- r = requests.get(url)
- soup = BeautifulSoup(r.content, "lxml")
- items = soup.find_all("item_html_name")
- # g_data = soup.find_all("div", {"class": "item-html-nane"})
- g_data = soup.find_all("div", {"class": "item-box-name"})
- # Runs a loop to print all the name of the items.
- for g_datas in g_data:
- print g_datas.text.strip('\n')
Add Comment
Please, Sign In to add comment