Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

🛒 eBay Scraper & Listing Enricher

📖 Story

I was wasting hours searching eBay for the best laptop deal for my sister.
I kept jumping between brands, checking CPU, RAM, storage, GPU, and prices over and over again.

Eventually, I realized there had to be a better way.

So I built this project. It collects hundreds of laptop listings per brand and lets AI handle the hard part — comparing, ranking, and scoring each option from 1 to 10.

In the end, finding the best deal became simple, fast, and stress-free.

🧠 Let’s Explain the Idea

A two-stage Python eBay scraping project built with SeleniumBase and BeautifulSoup.

This project: 1. Searches eBay for a keyword 2. Collects listing data 3. Opens each listing page 4. Extracts the full item description 5. Saves clean, structured JSON output

Designed for learning, research, and personal automation.


📁 Project Structure

.
├── part1.py        # Search eBay & collect listing data
├── part2.py        # Visit listings & extract descriptions
├── config.py       # Search configuration
├── JSON/
│   ├── data.json               # Output from part1
│   └── hp_laptop_eBay.json     # Final enriched output

⚙️ Configuration

Edit config.py:

SEARCH_WORD = "hp laptop"
MAX_ITEMS = 100

🚀 Usage

Step 1 --- Collect Listings

python part1.py

Output:

JSON/data.json

Step 2 --- Enrich Listings

python part2.py

Output:

JSON/hp_laptop_eBay.json

🧠 Features

  • SeleniumBase (undetected mode)
  • iframe & modern layout support
  • Duplicate listing protection
  • Rate-limited scraping
  • Clean JSON output

🛠 Requirements

  • Python 3.9+
  • SeleniumBase
  • BeautifulSoup4
pip install seleniumbase beautifulsoup4

⚠️ Disclaimer

For educational and personal use only.
Scraping eBay may be subject to their Terms of Service.


📸 Screenshots

Part 2: Parallel processing (4 processes)

Part 2: Parallel processing (4 processes)

Part 2: 1 processor

Part 2: 1 processor

Final enriched JSON, You can send the file to AI and ask for TOP 10

Final enriched JSON, You can send the file to AI and ask for TOP 10

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages