Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. for filterURL in categoryURLList:
  2.         print "Grabbing {}".format(BASEURL + filterURL)
  3.         page = opener.open(BASEURL + filterURL)
  4.         soup = BeautifulSoup(page.read(),"html.parser")
  5.  
  6.         games = soup.findAll("div", attrs={"class":"showcase-game-item"})
  7.  
  8.         for game in games:
  9.             gameLink = game.select("a")[0]
  10.             name = gameLink.find("img").get("alt")
  11.             gamesDict[name] = gameLink.get("href")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement