Skip to content

Web Scraping Book Data This Python script is used for web scraping book data from a specified URL and saving it to a CSV file.

Notifications You must be signed in to change notification settings

dms-codes/get_book_data_gramediacom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Web Scraping Book Data

This Python script is used for web scraping book data from a specified URL and saving it to a CSV file.

Usage

  1. Ensure you have the required libraries installed. You can install them using pip:

    pip install selenium pandas
  2. Configure the script with the necessary details:

    • FILENAME: Name of the CSV file to store the scraped data.
    • COLUMNS: Column names for the CSV file.
    • START_ROW_NUM: The starting row number to begin data retrieval.
    • HEADER: HTTP request headers for the web scraping requests.
    • url: The URL of the book product page you want to scrape.
  3. Run the script:

    python script.py
  4. The script will open a web browser, navigate to the specified URL, and scrape the book data, including title, author, URL, description, details, price, discount, discounted price, and image URL.

  5. The scraped data will be saved to a CSV file named data.csv (you can change the file name in the script).

  6. The script will handle multiple URLs by reading them from a CSV file and scraping data for each URL.

Requirements

  • Python 3.x
  • Selenium
  • Pandas

License

This script is provided under the MIT License.


You can customize the script and README.md file as needed, and use it to scrape book data from different URLs and store it in a CSV file.

About

Web Scraping Book Data This Python script is used for web scraping book data from a specified URL and saving it to a CSV file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages