Skip to content

Instantly share code, notes, and snippets.

@jonathanoheix
Created December 11, 2018 14:54
Show Gist options
  • Save jonathanoheix/d012202a8cc9b5c009a2e6725a6e161c to your computer and use it in GitHub Desktop.
Save jonathanoheix/d012202a8cc9b5c009a2e6725a6e161c to your computer and use it in GitHub Desktop.
main_page_products_urls = [x.div.a.get('href') for x in soup.findAll("article", class_ = "product_pod")]
print(str(len(main_page_products_urls)) + " fetched products URLs")
print("One example:")
main_page_products_urls[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment