Scanner visits online retailer sites and looks for items in inventory by specified keywords. If any items are found in stock - script sends Email notification and plays alert sound - so you don't miss out on a low supply item you want to buy. Currently implemented for Lithuanian retailers, but can be accommodated for any online shop easily.
Note: tested on Ubuntu 20.04 only.
- Change your working dir to this project
- Run
sudo apt install sox - Run
sudo apt install libsox-fmt-mp3 - Run
sudo apt-get install sendmail - Run
yarn install - Install required dependencies by running command
composer install - Copy configuration file by running command
cp .env.example .env - Set your desired configuration presets for .env file
- Start web scan by running
php ./app app:scan:web
- PHP 7.2
- Composer dependencies (Twig, Carbon, PHPMailer, various symphony components)
- sox audio library
- sendmail library
- Run script as described in
setupsection - Wait for Email notification to come to your inbox when stock update is tracked
- Check logs for errors or updates
- skytech.lt
- Varle.lt
- kilobaitas.lt
- Topocentras.lt
- Kaina24.lt
Simply implement WebsiteInterface compliant object. All objects ending with Website suffix are automatically loaded into Manager object.
- Open Google Email settings
- Head to Forwarding and POP/IMAP section
- Enable IMAP
- Head to general Google account settings (https://myaccount.google.com/securityhttps://myaccount.google.com/security)
- Disable 2FA if it is enabled and enable low security app usage (proceed at your own risk, or create separate google email account for this.)
- Enter Google account password/username into .env file
This way you don't need your email server to handle sending notifications and let your Google account do all the work.