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.

Getting Started

Install stack_alert using pip, preferably into a clean virtual environment:

$ python -m venv ~/stack_alert_venv
$ ~/stack_alert_venv/bin/activate
$ pip install stack_alert

Specify which questions you want to receive alerts for:

$ vi ~/.config/stack_alert/config.toml
site = 'stackoverflow'
tag = 'python'
keywords = '(num|sci)py'  # regular expression
recipient = ''

Configure cron to call stack_alert at 5:00 PM every day. Log messages are written to stderr. I recommend using ts and tinylog to collect and rotate these messages. Make sure that $PATH includes the stack_alert virtual environment, the aforementioned logging programs, and sendmail:

$ which sendmail
$ 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.

Files for stack-alert, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size stack_alert-0.2.0-py2.py3-none-any.whl (21.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size stack_alert-0.2.0.tar.gz (26.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page