Skip to content

This Python Script uses html scrapping to find out which book of the day packtpub is giving away daily.

Notifications You must be signed in to change notification settings

ferranmartinezlleida/Optional-Homework1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Optional-Homework1

This Python Script uses html scrapping to find out which book of the day packtpub is giving away daily. It also sends an email to the parameter provided mail adress, using a gmail server through smtplib python library.

This scripts needs at least two parameters besides its name. The first one should be a gmail adress, and the second one its password. The third one is optional and is used to send the e-mail to a different e-mail adress. If one doesn't put this last parameter, the destination adress will be by default the gmail adress provided as the first parameter.

To be able to use the script properly, not having a gmail adress, this dummy one is provided to be used in tests.

user: [email protected]

password: 12345678G

Parameter Ex:

./freebooks [email protected] 12345678G <- The email will be sent to [email protected]

./freebooks [email protected] 12345678G [email protected] <- The email will be sent to [email protected]

Python Interpreter is python2.7, The script has been developed with PyCharm Pro inside a virtual environment. The directory freeboks is this Pycharm project.

About

This Python Script uses html scrapping to find out which book of the day packtpub is giving away daily.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published