Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import bs4, time, requests
url = 'https://www.goodreads.com/shelf/show/adventure?page=100'
res = requests.get(url)
res.raise_for_status()
soup = bs4.BeautifulSoup(res.text,'html.parser')
for bookName in soup.findAll('a',class_='bookTitle'):
print bookName.getText()
time.sleep(.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment