Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sellorm/tooter
Quick script to post toots
https://github.com/sellorm/tooter
Last synced: about 2 months ago
JSON representation
Quick script to post toots
- Host: GitHub
- URL: https://github.com/sellorm/tooter
- Owner: sellorm
- Created: 2022-11-24T16:57:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T16:57:20.000Z (about 2 years ago)
- Last Synced: 2023-09-04T11:50:49.177Z (over 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tooter
Send a toot (publish a post) to Mastodon from the command line.
This small script is adapted from [this blog post](https://shkspr.mobi/blog/2018/08/easy-guide-to-building-mastodon-bots/) from Terence Eden.
## Usage
First create a virtual environment and install the required python packages:
```
python3 -m venv venv
pip install -r requirements.txt
```Next, add your Mastodon 'access token' (available from the Mastodon "Development" section of your account) to a file called `token.secret` in the same directory as the script.
Once the token is available, you can run `tooter` as follows:
```
./tooter
```For example:
```
./tooter "this is my message"
```And it will post the meesage to your Mastodon account.