Giter Site home page Giter Site logo

rss-filter-to-email's Introduction

rss-filter-to-email

Reads entries from RSS feeds, filter them by title and sends them to selected email.

Descripton

Flask with WTForms to edit RSS list.

feedparser to read listed feeds, filter by title if required.

Sends new entries via email, if set to check periodically.

Installation

Clone to /path/to/rss-filter, prepare virtual env, etc..

Install python packages with pip-tools:

$ pip-sync requirements.txt

or without:

$ pip install -r requirements.txt

Set environment variables:

export FLASK_ENV="production"
export FLASK_SECRET_KEY="some-random-string"

export MAIL_SERVER="localhost"
export MAIL_PORT=25
export MAIL_DOMAIN="outgoing_email.domain"
export MAIL_TO="[email protected]"

Run via flask:

$ flask run

or gunicorn:

[Unit]
Description=Gunicorn instance to serve RSS-filter
After=network.target

[Service]
User=www-data
Group=www-data
WorkingDirectory=/path/to/rss-filter
Environment="PATH=/path/to/rss-filter-virtualenv/bin"
EnvironmentFile=/path/to/rss-filter-virtualenv/envvars
ExecStart=/path/to/rss-filter-virtualenv/bin/gunicorn --bind unix:/tmp/rss-filter.sock -m 007 wsgi:app

[Install]
WantedBy=multi-user.target

Check every 15 minutes via cron:

*/15 * * * * export $(grep -v '^#' /path/to/rss-filter-virtualenv/envvars | grep -v '^$' | xargs) && cd /path/to/rss-filter/ && /path/to/rss-filter-virtualenv/bin/python process.py

Enjoy emails with new articles from selected RSS feeds.

rss-filter-to-email's People

Contributors

dependabot[bot] avatar ezimir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.