A Python-based tool designed to monitor Shopify stores for product availability and restocks. It sends real-time notifications via Discord Webhooks.
- Real-time Monitoring: Tracks Shopify stores for product availability based on specified keywords.
- Keyword Filtering: Supports
+for inclusion and-for exclusion of keywords. - Discord Notifications: Sends detailed notifications on new products or restocks, including price and variants.
- Proxy Support: Handles session management using proxies for enhanced performance.
- Persistent Tracking: Remembers previously tracked products to avoid duplicate notifications.
- Python 3.8 or higher
tls_clientdiscord-webhookpython-dotenv
- Clone the repository and navigate to the project directory.
- Create a
.envfile in the project directory and add the following environment variables:webhook_url=<Your Discord Webhook URL>
- Optionally, provide a proxy list:
- Create a
proxies.txtfile. - Add proxies in the format
IP:PORT:USER:PASS, one per line.
- Create a
-
Configure the
siteslist with Shopify store URLs and keyword filters:sites = [ {"link": "https://example-shop.com", "keywords": "+keyword1, -keyword2"}, ]
- Use
+before keywords to include products containing that term. - Use
-before keywords to exclude products containing that term. - Leave the
keywordsfield empty to monitor all products on the site.
- Use
-
Set the monitoring delay (in seconds):
delay = 15 # Adjust as needed
-
Start the monitoring script:
python monitor.py
Each Discord notification includes:
- Product name and URL
- Price
- Available variants and their stock status
- Direct cart addition links
proxies.txt: (Optional) List of proxies for session management.previous_availability.json: Stores previously tracked product data..env: Environment variables (including webhook URL).
- Adjust the monitoring delay to control the frequency of checks.
- Ensure the webhook URL in the
.envfile is correct. - Use proxies if monitoring multiple sites or to prevent IP bans.
This tool is intended for educational use only. Ensure compliance with the terms of service of any Shopify stores you monitor, and use the tool responsibly.
This project is licensed under the MIT License - see the LICENSE file for details.