Coupon scanner is a small script to list the available Domino Pizza coupons. This scanner was build to be gentle and scan slowly. The goal is not to overload Domino Pizza servers and neither to ban your IP, because at the end you want to buy your Pizza.
Python 3
, PIP
apt-get install -y python3 python3-pip build-dep
pip install tox
To setup the project you must start by creating your config file.
Copy the file config/config.yml.dist
to config/config.yml
and edit it.
cp config/config.yml.dist config/config.yml
tox
tox -- run.py --config path/to/my/config.yml
tox -r
This scanner is made to be gentle. It send a request every 10 sec, and the mecanism of sleep_schedule is made to stop the scan during peak periods to not overload the servers.
The public Domino Pizza coupon looks to be a 4 digit code. This scanner will call the Domino Pizza API and try all the permutation until it finds valid coupons. This script takes pause between each call and can even be configure to take long break, like between 11:30am and 2pm or 5pm to 10pm to not load servers during peak time.
Change the logging level in the config file from 'WARNING' to 'INFO'