Create a bot with Telegram's BotFather bot and keep a note of the token.I'd recommend creating a new Gmail account if you do this. Amazon pricewatcher password#Not recommended, but you can use your usual Google account password if you enable "Less secure app access". If you have 2FA enabled you can create an app password and put that in sending_email_pass. Change back to "0" to have the script run normally. Set to "1" to have the script attempt to send a notification to each method specified and then exit. Config File DocumentationĪnnotated example config file contents: Notification Mode I assume you'll be fine! Perhaps use cron. More information on launchd here Unix/Linux The following file ~/Library/LaunchAgents/ and paste in: Label ProgramArguments /usr/local/bin/python3 /path/to/amazon_wishlist_pricewatch/pricewatch.py RunAtLoad to use launchd to create a task that runs once each time the system boots create You can use cron, launchd, automator or any other tool. Amazon pricewatcher mac os#More examples and guidance on setting different schedules here Mac OS schtasks /create /tn "Amazon Wishlist Pricewatch" /tr "C:\Path\To\Your\Python\exe\python.exe D:\Path\To\amazon-wishlist-pricewatch\amazon_wishlist_pricewatch\pricewatch.py" /sc onstart /RU WindowsUserName /RP WindowsPassword to create a task that runs once each time the system boots enter the following into an elevated (Run as Administrator) cmd.exe/Powershell. I recommend using "Windows Task Scheduler". You can use any task scheduler you like to run pricewatch / pricewatch.py Here's a few suggestions. Remember to set back to "0" once you're done. A test notification(s) should be sent and pricewatch will exit. In config.json Set send_test_notification to "1" and run pricewatch. Location of the file will be printed.ĭetailed config file documentation here. pricewatch.py if you cloned the repo) into your console. If you can't find it enter pricewatch (or python3. Amazon pricewatcher install#(Optional) If you want telegram notifications: pip install python-telegram-bot Set Configurationįill in the config file located at amazon_wishlist_pricewatch/config.json Or clone the git repo: git clone cd amazon_wishlist_pricewatch pip install -r requirements.txt cd. Install with pip (recommended): pip install amazon-wishlist-pricewatch pricewatch Schedule the script to run as often as you like with Task Scheduler/launchd/cron, and you're good to go. When a new lowest price for a product is seen you receive a notification, and the new price is saved to JSON for future runs. Once installed and configured, each run of pricewatch downloads and stores your wishlist as JSON and does price comparisons against items seen in previous runs. No need for the overhead of a headless browser as all data can be gathered from the plain html. Uses the wonderful requests and BeautifulSoup4. Windows Task Scheduler / launchd (Mac OS) / cron (Mac OS / Unix). Pip install the package, fill in the configuration file and schedule to run with your preferred task scheduler. Price still not low enough? You'll only receive another notification for the same product when the price drops further. This package will send you a notification (SMTP email and/or telegram) each time a product on your publicly available wishlist reaches a new lowest price. Periodically check your public Amazon wishlist for price reductions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |