Stephane Bortzmeyer
9d294b2cb5
Mark regexps as regexps ("SyntaxWarning: invalid escape sequence...")
presto2gemini
Download solar storm alerts from the Presto service and converts them
into gemtext (text/gemini
) to be served via
Gemini.
The result can be seen (if you have a Gemini browser) on my Gemini capsule.
Installation
Download the program, Be sure you have the Python requests
library. Review the default values at
the beginning of the program. Some may be changed through command-line
options and you'll probably use --destination
(where to put the
results) and --raw-directory
(where to download the raw text
files). Then run the program periodically, for instance through cron:
# Solar alerts
33 3,7,11,15,19,23 * * * /path/to/program/presto2gemini.py
Technical details
We start from plain text files like this alert since Presto alerts are not available in a structured format.
Description
Download solar storm alerts from the Presto service and converts them into gemtext (text/gemini) to be served via Gemini.
Languages
Python
100%