Skip to content

A price scraper for HiBid based auction sites

Notifications You must be signed in to change notification settings

alexmi256/HiWatch

Repository files navigation

Intro

A tool to save auction ending prices for HiBid based sites

How It Works

The way this script works is that it will check the first page of auctions and record prices. If the last auction on this page ends in under 120 seconds, we will continue to check subsequent pages and record prices. If not, then we will stop processing pages since we don't care about items that end later.

Usually when someone bids on an item it will extend the auction end time by 2min.

Thus, we only need to check auction prices periodically. Currently, we recheck the first page based on the max(50 seconds, first auction end time - 30 seconds).

This should allow to capture the final price while not going overboard with making requests.

Installation

virtualenv venv
source venv/bin/activate

pip install requests arrow
sqlite3 src/db/auctions.db < src/db/createDB.sql
python src/main.py global src/db/auctions.db

Requirements

Python 3.9 SQLite with fts5

TODO

  • Check to make sure I'm not overwriting with empty prices
  • Improve scraping interval based on auction end times
  • Make website for viewing ended auctions

About

A price scraper for HiBid based auction sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages