Skip to content

Instantly share code, notes, and snippets.

View jacyhung's full-sized avatar

Jacy Hung jacyhung

  • Los Angeles, CA
View GitHub Profile
@jacyhung
jacyhung / unifi_scrape.py
Last active September 30, 2022 23:16 — forked from muffix/unifi_scrape.py
Quick-and-dirty scraper that checks for the availability of a product in the Unifi store
"""
Original script: https://gist.github.com/muffix/8556c9a9e915b0d5e3f25aedd60c8947
Quick-and-dirty scraper that checks for the availability of a product in the Unifi store
I was unable to get the original script working, so I modified it. Instead of checking for an "add to cart" button, it
checks whether or not there is an "in stock" badge on the product page. I'm also using discord webhook to ping me whenever
the item comes in stock.
Requirements:
beautifulsoup4==4.10.0