Parses feeds from URLs specified in ParserSettings.xml and sends new articles via
To find config and settings file, path to directory must be added to PATH:
To automate this process in ubuntu
sudo crontab –e
After crontab opens, add this line to add job which will run the script at 8pm everyday
0 20 * * * python $PATH_TO_FOLDER/parser.y
Config file with gmail login details needs to be present in project folder
[GmailConfig]
to=nitramdurcek@gmail.com
from=nitramdurcek@gmail.com
from_password=***********
####Used Modules
- smtplib - to send mail
- email - MIMEText to create html version of mail text
- imaplib - to delete mail from Sent folder
- feedparser - parse the URL feed
- xml.dom.minidom - parsing XML to read settings
- datetime - time comparison
- sys - UTF-8 encoding
- ConfigParser - parsing config file
- os - getting absolute path of files