This Python script uses Selenium to scrape book details from the "All Products" section of the Books to Scrape - Sandbox website. It extracts the following information:
- Book name
- Price
- Stock status (in stock or out of stock)
- Description
Ensure you have the following installed:
- Python 3.x
- Selenium (
pip install selenium
) - WebDriver for your browser (e.g., ChromeDriver for Google Chrome)
-
Clone the repository:
git clone https://github.com/seunrae/book-scrapper.git cd book-scraper
-
Install the required Python packages:
pip install selenium
-
Download and configure the appropriate WebDriver for your browser.
-
Open the
scraper.py
file and ensure the path to your WebDriver is correctly specified. -
Run the script:
python scraper.py