Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for filterURL in categoryURLList:
- print "Grabbing {}".format(BASEURL + filterURL)
- page = opener.open(BASEURL + filterURL)
- soup = BeautifulSoup(page.read(),"html.parser")
- games = soup.findAll("div", attrs={"class":"showcase-game-item"})
- for game in games:
- gameLink = game.select("a")[0]
- name = gameLink.find("img").get("alt")
- gamesDict[name] = gameLink.get("href")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement