Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions LICENSE

This file was deleted.

36 changes: 16 additions & 20 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
feed2mail
rss2email
---------
rss2email done simple.

Delivers news from feeds (RSS, Atom, ...) to your mail box.

How to install
~~~~~~~~~~~~~~

Simply check out the Git repository or download the Python file.

**Docker**::

docker build -t feed2mail .
Digested HTML format

**Alternatively, manual virtualenv**::
**Required Env**
~~~~~~~~~~~~~~

pip install html2text feedparser

How to use it?
~~~~~~~~~~~~~~
1. ``cp example_config.py config.py``.
1. ``cp -r rss2email.py config.py /data``.
2. Edit ``config.py``.
3. Run feed2mail every *N* seconds/hours/decades. For Docker setup::

docker run -v /path/to/your/seen/file:/seen feed2mail

For manual virtualenv setup, simply run ``feed2mail.py``.
3. run in python ``python rss2email.py``
4. Task:

I've found a bug!
~~~~~~~~~~~~~~~~~
Great! `Please open a ticket`_.
``vim crontab``

.. _Please open a ticket: http://github.com/jonashaag/feed2mail/issues/
``minute hour day_of_month month day_of_week user_name cd ./location && python rss2email.py``

RSS Link
~~~~~~~~~~~~~~
Science:
https://www.science.org/action/showFeed?type=axatoc
Nature:
https://www.science.org/action/showFeed?type=axatoc

License?
~~~~~~~~
ISC
15 changes: 15 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SENDER_MAIL = 'Sender Name <sender_email@email.com>'
RECIPIENT_MAIL = 'recipient_email@email.com'
SMTP_SERVER = 'smtp.mail.com'
SMTP_USE_TLS = True
SMTP_PORT = 587 # can be absent/set to None for the default value
SMTP_USERNAME = 'smtp_username@email.com'
SMTP_PASSWORD = 'smtp_password'
# A list of feeds to fetch.
# Items must be `(feed_url, group_name)` tuples.
# Entries of feeds that make a group won't be sent twice of they appear
# on multiple feeds (often seen on News Sites that offer topic feeds)
FEEDS = [
('https://www.science.org/action/showFeed?type=axatoc','Science'),
('http://feeds.nature.com/nature/rss/current','Nature'),
]
Binary file added data/Nature
Binary file not shown.
Binary file added data/Science
Binary file not shown.
16 changes: 0 additions & 16 deletions example_config.py

This file was deleted.

274 changes: 0 additions & 274 deletions feed2mail.py

This file was deleted.

Loading