Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/autogestion/pubgate-rssbot
Extension for PubGate, federates rss-feeds
https://github.com/autogestion/pubgate-rssbot
activitypub pubgate rss rssbot sanic
Last synced: 3 months ago
JSON representation
Extension for PubGate, federates rss-feeds
- Host: GitHub
- URL: https://github.com/autogestion/pubgate-rssbot
- Owner: autogestion
- License: bsd-3-clause
- Created: 2018-08-26T16:22:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T17:35:24.000Z (over 4 years ago)
- Last Synced: 2024-04-13T13:59:36.783Z (9 months ago)
- Topics: activitypub, pubgate, rss, rssbot, sanic
- Language: Python
- Size: 20.5 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PubGate RSS Bot
Extension for [PubGate](https://github.com/autogestion/pubgate), federates rss-feedsRequires PubGate >= 0.2.9
### Run- Install PubGate
- Install rssbot
```
pip install git+https://github.com/autogestion/pubgate-rssbot.git```
- Update conf.cfg with
```
EXTENSIONS = [..., "rssbot"]
RSSBOT_TIMEOUT = 3600
POSTING_TIMEOUT = False
MOVE_IMG_TO_ATTACHMENT = True
```
- run
```
python run_api.py```
### Usage
#### Create bot
```
/user POST
```
payload
```
{
"username": "user",
"password": "pass",
"email": "[email protected]", #optional
"invite": "xyz", #required if register by invite enabled
"profile": {
"type": "Service",
"preferredUsername": "Anarchy101",
"summary": "For questions about the theory of anarchism, anarchist movements, opinions on certain situations or current events, or even socialist or communist theory in general.",
"icon": {
"type": "Image",
"mediaType": "image/png",
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Anarchy-symbol.svg/1200px-Anarchy-symbol.svg.png"
}
},
"details": {
"rssbot": {
"feed": "https://www.reddit.com/r/Anarchy101/.rss",
"enable": true,
"tags": ["anarchy", "anarchy101", "reddit"] #could be empty []
"html": true #if false, title will be used
}
}
}
```#### Disable/Update bot
```
/ PATCH (auth required)
```
payload
```
{
"details": {
"rssbot": {
"feed": "https://www.reddit.com/r/Anarchy101/.rss", #change to update feed url
"enable": false, #"enable": true to re-enable
"tags": ["anarchy", "anarchy101", "reddit"], #could be empty []
"html": true
}
}
}
```