Quick and dirty container that uses selenium, BeautifulSoup, chromium via python to scrape page for a basic "Sold Out" string. This is in no way optimized or anything.
If an item is in stock it returns:
Could be run via CI, cron
, or really lazily via watch
.
docker run -e \
URL="https://store.ui.com/collections/wireless/products/unifi-hd" \
-e SLACK_WEBHOOK="https://hooks.slack.com/services/..." \
${contianer}
- emoji
:red-alert_siren:
required - webhook to where you want an alert posted
- ubiquity page url, ie
https://store.ui.com/collections/routing-switching/products/udm-pro