Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuyaban/self_forsquare_bot
This is server/script programs to post Swarm notifications to X (Twitter) and mastdon.
https://github.com/yuyaban/self_forsquare_bot
Last synced: 16 days ago
JSON representation
This is server/script programs to post Swarm notifications to X (Twitter) and mastdon.
- Host: GitHub
- URL: https://github.com/yuyaban/self_forsquare_bot
- Owner: yuyaban
- License: mit
- Created: 2023-10-22T14:26:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-02T09:04:15.000Z (7 months ago)
- Last Synced: 2024-10-19T00:58:11.096Z (2 months ago)
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# self Forsquare Bot
This is server/script programs to post Swarm notifications to X (Twitter) and mastdon.The following env file is required to run this program.
```
$ cat ~/path/to/self_forsquare_bot/env
export CONSUMER_KEY=""
export CONSUMER_SECRET=""
export ACCESS_TOKEN=""
export ACCESS_SECRET=""
export BEARER_TOKERN=""
export FORSQUARE_ACCESS_TOKEN=""
export MASTDN_CLIENT_KEY=""
export MASTDN_CLIENT_SECRET=""
export MASTDN_ACCESS_TOKEN=""
```## main.py
Script with polling method to run in crontab```
$ crontab -l
*/1 * * * * bash /path/to/polling.sh
```## server.py
A server-based program that receives and operates on webhooks.
To receive a webhook, the server must provide an FQDN and SSL certification.
```
$ nohup python server.py &
```