Skip to content

This is a basic web scraping script in Python using BeautifulSoup and requests to extract product names and prices from a given website.

Notifications You must be signed in to change notification settings

wasu00/Data-Scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Web Scraper

This Python project is a simple web scraper that uses BeautifulSoup to extract product information, such as product titles and prices, from a website. The script is currently set up to extract data from headings (h2) and spans (span) with specific class names.

Getting Started

Prerequisites

To use this project, make sure you have Python and the required libraries installed. You can install BeautifulSoup and requests using pip:

 pip install beautifulsoup4 requests 

Usage

  1. Clone the repository:
 git clone https://github.com/your-username/your-repo-name.git
  1. Open the file and specify the URL and the HTML structure you want to parse. For example:
 url = "https://example.com"
  1. Run the script:
Product Name
$49.99

Note

This script is intended for demonstration and educational purposes only. Be mindful of the site's terms of service before scraping data, as some websites prohibit data scraping.

Contributing

Feel free to open issues or create pull requests to help improve this project!

About

This is a basic web scraping script in Python using BeautifulSoup and requests to extract product names and prices from a given website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published