Skip to content

DurkoMatko/FeedParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeedParser

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

About

Custom RSS feed parses which automatically sends an email with summary, preview and links to new articles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages