Book Scraper is a Python script that scrapes book information from the Books to Scrape website (http://books.toscrape.com/). It retrieves book titles, star ratings, prices, and availability for various book categories, and saves the data as a JSON file. The script includes functions for counting the number of books with a certain star rating, and for generating an API endpoint that combines book data from multiple categories.
- Python 3.6 or later
- requests 2.25.1 or later
- beautifulsoup4 4.9.3 or later
To install the required packages, you can run the following command:
pip install -r requirements.txt