Skip to content

Instantly share code, notes, and snippets.

@gabecano4308
Created December 30, 2020 20:11
Show Gist options
  • Save gabecano4308/d6d7ee8cecb0388e94a6100a54603b46 to your computer and use it in GitHub Desktop.
Save gabecano4308/d6d7ee8cecb0388e94a6100a54603b46 to your computer and use it in GitHub Desktop.
for part 1
# BeautifulSoup library parses the content of an HTML document, in this case wiz_res
wiz_soup = BeautifulSoup(wiz_res.content, 'lxml')
# BeautifulSoup's .find() method searches for a tag and specified attributes,
# returning the first match
wiz_per_game = wiz_soup.find(name = 'table', attrs = {'id' : 'per_game'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment