Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.11 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.11 KB

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