https://github.com/everton-tenorio/twish
Tweets in Shell – A shell-based CLI for tweeting with xurl, featuring posting, replies, deletions, and AI-powered translation.
https://github.com/everton-tenorio/twish
bash shellscript twitter x-api xurl
Last synced: about 1 month ago
JSON representation
Tweets in Shell – A shell-based CLI for tweeting with xurl, featuring posting, replies, deletions, and AI-powered translation.
- Host: GitHub
- URL: https://github.com/everton-tenorio/twish
- Owner: everton-tenorio
- License: mit
- Created: 2025-02-15T21:35:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T15:41:42.000Z (over 1 year ago)
- Last Synced: 2025-05-14T09:51:36.752Z (about 1 year ago)
- Topics: bash, shellscript, twitter, x-api, xurl
- Language: Shell
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twish
## Requirements:
- Read and Install xurl: [https://github.com/xdevplatform/xurl](https://github.com/xdevplatform/xurl)
- Rate Limits: [https://docs.x.com/x-api/fundamentals/rate-limits](https://docs.x.com/x-api/fundamentals/rate-limits)
- Authentication: You must have a developer account and an app to use the xurl tool.
### Use the script as a command
```bash
alias tw=<...path choice/tw>
```
### Authentication
In the developer account, you need to obtain the values for BEARER TOKEN, CLIENT_ID, and CLIENT_SECRET.
These values will first be used in the script, then authenticate yourself.
```bash
tw -auth
```
### Post a tweet
```bash
tw "New post!"
```
...With media
```bash
tw "New post!" image.jpg
```
```bash
tw "New post!" https://anyurl-image.up/image.jpg
```
### Reply to tweets
**You need to obtain the ID**
```bash
tw -rep "reply"
```
### Delete tweets
**You need to obtain the ID**
```bash
tw -del
```