Sign inSign up

loupeznik/lego-price-tracker

By loupeznik

•Updated over 2 years ago

Application for tracking LEGO prices

Image
1

3.1K

loupeznik/lego-price-tracker repository overview

⁠Lego price tracker

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).

⁠Running

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.

Repo: https://github.com/Loupeznik/lego-price-tracker⁠

Tag summary

Content type

Image

Digest

sha256:28aa8fbbb…

Size

302.5 MB

Last updated

over 2 years ago

docker pull loupeznik/lego-price-tracker