Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 770 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 770 Bytes

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.