Be notified when interesting questions are posted to Stack Exchange sites.
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stack_alert-0.2.1.tar.gz.
File metadata
- Download URL: stack_alert-0.2.1.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6bdb2dd3c7115227a59196d3bf0779190c7097be3de9624aa8ca751707c12c
|
|
| MD5 |
dfb39158e2c861bc1bbcc4a456178e6f
|
|
| BLAKE2b-256 |
de04d0c155ee2d9c94a14f17fff9723b81247203acabf102499c04586f929d64
|
File details
Details for the file stack_alert-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: stack_alert-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ddbef967dfe03ec98088deebfbe76fc38a8bf996811612e91214f6c3691029c
|
|
| MD5 |
2c7c6d497f82f00e714e94a6a170670a
|
|
| BLAKE2b-256 |
b05c7af8d5648b472f7d87b3a62ec4e4bb2a9932ed543daff17a991270ae5d45
|