Assignments for Today

Office Hours

Time: 11am-1pm CST

Sandbox Scraping

July 7-July 8

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.

Books

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.

Quotes

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.)

Submit work here.