Skip to content

Instantly share code, notes, and snippets.

@kunalrustagi08
Created May 4, 2020 15:23
Show Gist options
  • Save kunalrustagi08/99a9830c3ef6bcee597d793752e61a62 to your computer and use it in GitHub Desktop.
Save kunalrustagi08/99a9830c3ef6bcee597d793752e61a62 to your computer and use it in GitHub Desktop.
book_div = soup.find_all('li', class_='col-xs-6 col-sm-4 col-md-3 col-lg-3')
for container in book_div:
title = container.article.h3.a['title']
book_title.append(title)
price = container.article.find('div', class_='product_price').p.text
product_price.append(price)
rating = container.article.p['class'][-1]
star_rating.append(rating)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment