/BooksToScrape

Scraping exercise: https://books.toscrape.com/index.html

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

BooksToScrape

Scraping exercise from books.toscrape.com

Requirements

To run this project, you'll need to install BeautifulSoup.

pip3 install beautifulsoup4

Clone repository and execute

git clone https://github.com/prodseanb/BooksToScrape.git
python3 scraper_5.py

urls

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

Objective

This program scrapes every section of placeholder data from books.toscrape.com

License

GNU