Application for tracking LEGO prices
1.2K
A simple FastAPI application for tracking prices from lego.com. Uses MongoDB for storing data and Slack for alerting. Price fetching runs as a cronjob within the container and scrapes the current prices every 12 hours. Scraping can also be invoked manually via the API. Items to be tracked can be added via the API (see OpenAPI spec).
sudo docker run -p 8000:80 --env-file=.env -d --name lego loupeznik/lego-price-tracker:latest
.env file should contain the following:
MONGO_CONNECTION_STRING=<mongodb_connection_string>
CHROMEDRIVER_PATH=/usr/bin/chromedriver
SLACK_OAUTH_TOKEN=<slackbot_token>
SLACK_CHANNEL_ID=<slack_channel_id>
After running, go to http://yourserver.com:8000/docs to see the OpenAPI spec.
Content type
Image
Digest
sha256:28aa8fbbb…
Size
302.5 MB
Last updated
over 2 years ago
docker pull loupeznik/lego-price-tracker