Assignments for Today

Sandbox Scraping

Today, you will practice web scraping using Selenium. Go to this website to find safe websites to scape. You will be doing both of the websites, but start with Books since it is easier. The goal is to parse the data from the websites into a CSV file. Your code may take some time to run.


Loop through each page and store the name of the book and the price in a CSV file.

  • Hint: Hint: Each page has 20 items and there are 50 pages.


Loop through each quote and store the author of the quote and the quote in a CSV file. If you want an extra challenge, click “Login” and write a script that logs into the website. (Any username and password combination works.)