python-grmlfeedbot/README.md

29 lines
643 B
Markdown
Raw Permalink Normal View History

2022-05-15 08:51:53 +00:00
# grmlfeedbot
2022-05-15 08:50:17 +00:00
This bot parses newsfeeds and posts them to a mastodon account
2022-05-15 09:02:26 +00:00
## install
2022-05-15 09:05:08 +00:00
```bash
2022-05-15 08:50:17 +00:00
apt install python3-mastodon
apt install python3-feedparser
2022-05-15 09:07:47 +00:00
git clone https://git.grml.de/robin/python-grmlfeedbot.git
2022-05-15 09:05:08 +00:00
```
2022-05-15 09:02:26 +00:00
## setup
2022-05-15 09:05:08 +00:00
```bash
2022-05-15 09:07:47 +00:00
cd python-grmlfeedbot
2022-05-15 08:50:17 +00:00
cp settings.py.sample settings.py
2022-05-15 09:05:08 +00:00
```
2022-05-15 09:07:47 +00:00
Edit settings.py for your setup
2022-05-15 09:02:26 +00:00
## run
2023-04-16 15:49:38 +00:00
Run once (reads from settings)
2022-05-15 09:05:08 +00:00
```bash
2022-05-15 08:50:17 +00:00
python3 main.py
2022-05-15 10:27:53 +00:00
```
2023-04-16 15:49:38 +00:00
Run once with different settingsfile (you need a log and data directory for each settingsfile)
```bash
python3 main.py --settingsfile settings2
```
2022-05-15 10:29:15 +00:00
Keep running with a delay (default = 3600)
2022-05-15 10:27:53 +00:00
```bash
python3 main.py --daemon --delay 3600
2022-05-15 09:05:08 +00:00
```