Skip to main content

Be notified when interesting questions are posted to Stack Exchange sites.

Project description

Stack Alert is a program to notify you a question matching certain filters is asked on a Stack Exchange site. Stack Exchange has a feature that allows you to be notified when questions matching certain tags are asked, but this is often so broad as to be useless. Stack Alert instead allows you to filter using regular expressions against the title and body of the question.

https://img.shields.io/pypi/v/stack_alert.svg https://img.shields.io/pypi/pyversions/stack_alert.svg https://img.shields.io/readthedocs/stack_alert.svg https://img.shields.io/github/workflow/status/kalekundert/stack_alert/Test%20and%20release/master https://img.shields.io/coveralls/kalekundert/stack_alert.svg

Getting Started

Install stack_alert using pip:

$ pip install stack_alert

Specify which questions you want to receive alerts for:

$ vi ~/.config/stack_alert/config.toml
[[query]]
site = 'stackoverflow'
tag = 'python'
keywords = '(num|sci)py'  # regular expression
recipient = 'alice@example.com'

Configure cron to call stack_alert at 5:00 PM every day:

$ crontab -e
0 17 * * * stack_alert

Log messages are written to stderr. I recommend using ts and tinylog to collect and rotate these messages:

$ crontab -e
0 17 * * * stack_alert 2>&1 | ts | tinylog /path/to/log/dir

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

stack_alert-0.1.0.tar.gz (25.9 kB view hashes)

Uploaded source

Built Distribution

stack_alert-0.1.0-py2.py3-none-any.whl (21.0 kB view hashes)

Uploaded py2 py3

Supported by

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