This Web Crawler is to check if the user already has the Free Book Day Packt Publishing and if you have not it is added automatically.
$ pip install -r requirements.txt
Create a hidden file named .packt_user.cfg and add your credentials to PacktPublishing following the example:
username
password
Modify permission of file .packt_user.cfg, to only that user have acess.
$ chmod 760 .packt_user.cfg
To run script
$ python packt_crawler.py
# echo "* * * * * root python /path_do_repositorio/WebCrawlerPacktPublishing/packt_crawler.py" > /etc/daily/packt_crawler
$ grep CRON /var/log/syslog