Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sslivkoff/threador
tool for formatting tweet threads
https://github.com/sslivkoff/threador
Last synced: 10 days ago
JSON representation
tool for formatting tweet threads
- Host: GitHub
- URL: https://github.com/sslivkoff/threador
- Owner: sslivkoff
- Created: 2022-09-24T18:05:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T06:03:31.000Z (about 2 years ago)
- Last Synced: 2024-04-24T05:01:05.755Z (7 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# threador
Threador is a cli tool for formatting tweet threads
Features
- tweet length testing
- add indexing numbers to each tweet
- tracking of images needed for each tweet
- table of contents creation## installation
`pip install pythreador`
## usage
`threador `
`threador --index`
`threador --color | less -R`
## example
```
this is the first tweetit is an introduction
-
this is the next tweet
[image: happy_emoji.png]
[image: confused_emoji.png]-
tweets are separated by either:
- 2 or more blank lines
- a line containing only horizontal dashes (- or ─)-
this is the final tweet
```(note that in a terminal this output is colored for better readability)
```bash
> threador raw_thread.txt --index
────────────────────────────────────────────────────────────────────────────────────
this is the first tweetit is an introduction
length = 46 chars
────────────────────────────────────────────────────────────────────────────────────
this is the next tweetimages
- happy_emoji.png
- confused_emoji.png
length = 22 chars
────────────────────────────────────────────────────────────────────────────────────
tweets are separated by either:
- 2 or more blank lines
- a line containing only horizontal dashes (- or ─)
length = 107 chars
────────────────────────────────────────────────────────────────────────────────────
this is the final tweet
length = 23 chars
────────────────────────────────────────────────────────────────────────────────────
┌──────────────────────┐
│ Tweet thread summary │
└──────────────────────┘
- number of tweets: 4
- number of tweets over char limit: 0images: 2
- happy_emoji.png
- confused_emoji.pngunknown_annotations: 0
```