GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ironmark72/WebScraperFlex: This Python script is a flexible and customizable tool for scraping product data from a list of URLs provided in a CSV file. It allows you to specify HTML tags and class names to extract information such as product names, prices, and descriptions from web pages.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
links.csv
links.csv
 
 
web_scraping.py
web_scraping.py
 
 

Repository files navigation

Web Scraping

This Python web_scraping allows you to scrape product data from a list of URLs provided in a CSV file. The web_scraping is designed to be flexible, allowing you to specify the HTML tags and class names for extracting the product name, product price, and product description from web pages.

Prerequisites

Before using this web_scraping, you should have the following prerequisites installed:

  • Python 3.9
  • requests library (for making HTTP requests)
  • beautifulsoup4 library (for parsing HTML)
  • A CSV file (links.csv) containing a list of product URLs to scrape.

Usage

  1. Clone this repository to your local machine.

  2. Install the required Python libraries if you haven't already:

    pip install requests beautifulsoup4
  3. Create a CSV file named links.csv in the same directory. Add a list of product URLs that you want to scrape in a single column.

  4. Run the web_scraping using the following command:

    python web_scraping.py
  5. The web_scraping will prompt you to enter the HTML tags and class names for the product name, product price, and product description. Provide the required information as requested.

  6. The web_scraping will start scraping data from the provided URLs and save the results to an output.csv file.

  7. Once the web_scraping finishes, you can find the scraped data in the output.csv file in the same directory.

Customization

You can customize the web_scraping by specifying the HTML tags and class names for the product information fields (name, price, description) directly in the web_scraping. Alternatively, you can follow the prompts during web_scraping execution to customize on the fly.

Example CSV File (links.csv)

https://example.com/product1
https://example.com/product2
https://example.com/product3

Acknowledgments

  • This web_scraping was created for educational purposes and can be adapted for various web scraping tasks.
  • Make sure to respect the website's terms of service and robots.txt file when scraping data from websites.

Happy scraping!

About

This Python script is a flexible and customizable tool for scraping product data from a list of URLs provided in a CSV file. It allows you to specify HTML tags and class names to extract information such as product names, prices, and descriptions from web pages.

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.