Skip to content

horridhaider/shophive-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shophive Product Scraper

A Python-based web scraper that extracts product data and HTML content from the Shophive website for analysis and automation. It takes approximately 7-10 minutes for 100 pages with 6000+ products.

Output Sample:

csv_preview

Features

  • Scrapes product titles, prices, and links
  • Handles pagination across multiple pages
  • Extracts raw HTML for deeper analysis
  • Saves cleaned data into structured format (CSV)
  • Basic error handling for failed requests

Tech Stack

  • Python
  • requests
  • BeautifulSoup
  • pandas

Installation

Clone the repository:

git clone https://github.com/horridhaider/shophive-scraper.git
cd shophive-scraper

Install dependencies:

pip install -r requirements.txt

Usage

Edit the config file for custom: -Base URL -Start Page -End Page

Run the scraper:

python shopping.py

Output

The scraper generates a CSV file containing:

-Product Name -Price -Product URL

Example:

Product Name Price URL
iPhone 11 PKR 150,000 https://shophive.com/...

Terminal Output Sample:

terminal_output

About

Python scraper that extracts product data and HTML from Shophive for analysis and automation

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages