Skip to content

This script uses web scraping to extract book details from 'Books to Scrape', presenting the data in CSV format via a command-line interface.

Notifications You must be signed in to change notification settings

talzab/scraping-some-books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Scraping Some Books

Description

This Python script scrapes information from http://books.toscrape.com for each book, including the title, current price, Universal Product Code (UPC), and a link to the page with further details. The script organizes the data and outputs it in CSV format.

How to Use

  1. Clone the repository:

git clone https://github.com/your-username/scraping-some-books.git

  1. Navigate to the project directory:

cd scraping-some-books

  1. Install the required Python packages:

pip install beautifulsoup4

  1. Run the script:

python scrape-books.py books.csv

This command will execute the script and redirect the output to a file named books.csv. The CSV file will contain four columns: title, link, price, and UPC.

About

This script uses web scraping to extract book details from 'Books to Scrape', presenting the data in CSV format via a command-line interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages