Skip to content

altrhombus/32datasources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

32datasources - Convert your auction data into JSON!

the 32datasources web UI

32datasources is a Python service that continuously gathers data from your 32auctions listing, stores the latest snapshot in auction_items.json, and exposes a live control panel with manual overrides. This works in conjunction with the 32dashboards project, but can run standalone if you just need a JSON file.

Features

  • Service that collects item metadata and total raised value on a configurable cadence.
  • Control panel (served on port 8081) with:
    • Real-time log stream
    • Live status including last refresh, manual adjustment, and next refresh countdown
    • Buttons to pause/resume the refresh loop or trigger an immediate refresh
    • Manual adjustment field to tweak the reported total
    • Text filter to exclude items from the JSON file

Getting Started

  1. Install dependencies:
    pip install -r requirements.txt
  2. Launch the service:
    python3 scrape_auction.py
  3. Open the control panel in a browser at http://localhost:8081/.

Data is written to auction_items.json in the project root so other processes can consume it.

JSON Contents

The JSON file contains:

  • Time of the last refresh
  • URL of the auction
  • Total number of items
  • Total amount raised
  • A list of all items, including:
    • Item title
    • Picture URL
    • Price
    • Remaining (if applicable, otherwise null)
    • Value (if applicable, otherwise null)
    • Number of bids (if applicable, otherwise null)

Notes

  • A auth token is required to grab the total raised
  • Runs great in docker:
    docker build -t 32datasources .
    docker run --rm -p 8081:8081 --name 32datasources 32datasources

About

Turn 32auctions data into a JSON file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors