This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |