Stack Alert
Stack Alert is a program to notify you when 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 [[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. Log messages are written to stderr. I recommend using ts and tinylog to collect and rotate these messages:
$ which sendmail /usr/sbin/sendmail $ crontab -e PATH=$HOME/stack_alert_venv/bin:/usr/sbin:/usr/bin:/bin 0 17 * * * stack_alert 2>&1 | ts | tinylog /path/to/log/dir
Metadata
Release files for stack-alert 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stack_alert-0.2.1.tar.gz | 27.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stack_alert-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 48.1 kB
Release files / stack_alert-0.2.1.tar.gz
| Download URL | stack_alert-0.2.1.tar.gz |
|---|---|
| Size | 27.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b6bdb2dd3c7115227a59196d3bf0779190c7097be3de9624aa8ca751707c12c
|
|
BLAKE2b-256 checksum How to use checksums |
de04d0c155ee2d9c94a14f17fff9723b81247203acabf102499c04586f929d64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / stack_alert-0.2.1-py2.py3-none-any.whl
| Download URL | stack_alert-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0ddbef967dfe03ec98088deebfbe76fc38a8bf996811612e91214f6c3691029c
|
|
BLAKE2b-256 checksum How to use checksums |
b05c7af8d5648b472f7d87b3a62ec4e4bb2a9932ed543daff17a991270ae5d45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|