Skip to main content

A simple RSS to email application. Nibbler aggregates your subscriptions and puts them in an email.

Project description

Overview

A simple RSS to email application.

Nibbler is a RSS aggregator that collects articles and puts them into a daily email newsletter. It is a command line app and aims to be simple yet flexible to use.

It is designed to run once day and puts new articles in a single email for that previous day. With only required command line arguments supplied, it will put the email in a file on your filesystem. You could write a script to send this as an email if you have a mail transfer agent on that system or potentially show it as a static page.

If you can configure or have access to a SMTP server to send email, you can pass in smtp configuration to nibbler. Popular free choices for a SMTP server would be:

  • gmail
  • sendgrid
  • mailgun
  • aws (free based on usage)

The sender email (from email) should be for a domain or email address which you own. This will help prevent your email from going to spam.

Requirements

Nibbler is a python application tested on 3.+ I have only run it on Ubuntu Linux and Mac machines.

Installation / Dependencies

nibbler hopes to be on pypi soon,

Until then you can install the required python which are opml ,lxml, feedparser, SQLAlchemy and Jinja2. It stores articles in a sqlite database on your filesystem.

Then you can run it with this command:

python3 -m nibbler <to_email> <from_email> <dir_to_subscriptions>

The from email should be for a domain on which you are running email. This will help prevent your email from going to spam.

Pass in the directory in which you have a subscriptions.xml (an OPML file) as the third argument.

I recommend using a cron job on your local machine or a server to aggregate rss feeds and send the newsletter daily.

Help

A simple RSS to email application.

positional arguments:
to_email              Recipient email address; youremail@example.com
from_email            Sender email address; nibble@example.com
sub_dir               path to subscriptions.xml file

optional arguments:
-h, --help                          show this help message and exit
-l log_dir, --log-dir log_dir       optional path to log dir
-s smtp_ini, --smtp-ini smtp_ini    optional path to smtp ini file
-d db_dir, --db-dir db_dir          optional path to sqlite db dir
-e email_dir, --email-dir email_dir optional path to directory where email file is output before sending
-v, --version                       show program's version number and exit

SMTP Notes

A sample smtp.ini file would be:

[smtp]
username = sample_username
password = Sample_Password
host = hostname.example.com
port = 587

License

MIT license, a permissive open-source license.

Author

Randall Rodakowski

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nibbler-rss-0.1.0.tar.gz (114.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nibbler_rss-0.1.0-py3-none-any.whl (113.4 kB view details)

Uploaded Python 3

File details

Details for the file nibbler-rss-0.1.0.tar.gz.

File metadata

  • Download URL: nibbler-rss-0.1.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for nibbler-rss-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b54b969c2f6d12a136b5f902e902e14bde2a6c252a59ccd5d403c5a15f831b1
MD5 a9d0ba9b67895b593e52e0b1ba11abb7
BLAKE2b-256 7f81165e339d021df515791fd562b9f0a05b28996e94ac6595a23da7f343d700

See more details on using hashes here.

File details

Details for the file nibbler_rss-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nibbler_rss-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 113.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for nibbler_rss-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60ce2b909b721b0542fcd9a52ede50a44ec5e62c94a6d35ed8769876279b42b3
MD5 59488dba43e0dd1b1efff27bd7661999
BLAKE2b-256 73c7a67d664ca0cb682c9cc458e567b16cc9571f098b5d2427bcf3d3f4981b14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page