Scraping exercise from books.toscrape.com
To run this project, you'll need to install BeautifulSoup.
pip3 install beautifulsoup4
git clone https://github.com/prodseanb/BooksToScrape.git
python3 scraper_5.py
#url dictionary, value to append to URL = f"https://books.toscrape.com/catalogue/category/books/{}/index.html"
urls = {
"Travel": "travel_2",
"Mystery": "mystery_3",
"Historical Fiction": "historical-fiction_4",
"Sequential Art": "sequential-art_5",
"Classics": "classics_6",
...
for key, value in urls
value = appends to URL to query the genre.
This program scrapes every section of placeholder data from books.toscrape.com