This Python project was completed as part of Project 2 of the Python Application Developer path at OpenClassrooms.
It implements a web scraping program to extract pricing data and detailed information from the fictional bookstore Books to Scrape. The data is then structured and exported as CSV files.
The main.py program allows extracting data from https://books.toscrape.com/index.html and saving detailed information (title, price, description, stock, etc.) into one or more optimized CSV files, as well as the cover images.
- Python 3 (version 3.6 or higher recommended)
- Git
Navigate to your desired folder, then clone the repository:
git clone https://github.com/Mnr04/book-scraper-python.git
Windows (Powershell) -- > python -m venv env
MacOS / Linux (Terminal) --> python3 -m venv env
Windows (Powershell) -- > .\env\Scripts\activate
MacOS / Linux (Terminal) --> source env/bin/activate
pip install -r requirements.txt
Execute the main script:
Windows --> python main.py
MacOS / Linux --> python3 main.py