Guest User

https://marketplace.tf/shop/blindpolarbear

a guest
May 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2. import requests
  3.  
  4. url = "https://marketplace.tf/shop/blindpolarbear"
  5.  
  6. r = requests.get(url)
  7. soup = BeautifulSoup(r.content, "lxml")
  8. items = soup.find_all("item_html_name")
  9. # g_data = soup.find_all("div", {"class": "item-html-nane"})
  10. g_data = soup.find_all("div", {"class": "item-box-name"})
  11.  
  12. # Runs a loop to print all the name of the items.
  13. for g_datas in g_data:
  14.     print g_datas.text.strip('\n')
Add Comment
Please, Sign In to add comment