Go to file
gutmet 3a5c96219e add note about archive status 2023-09-10 20:12:46 +02:00
.gitignore purge history since July 2018 2019-01-01 19:35:22 +01:00
LICENSE add license 2019-01-13 20:17:24 +01:00
Readme.md add note about archive status 2023-09-10 20:12:46 +02:00
credentials.go print everything that is not tweets to stderr (excluding wipe) 2020-10-21 08:34:11 +02:00
drivel.go make strings.ReplaceAll available in templates 2020-11-25 14:49:49 +01:00
example.template add flags for a template file to format tweets 2020-10-16 19:20:53 +02:00
go.mod go mod update 2020-10-11 13:17:29 +02:00
media.go refactoring: rename 'send' to 'post' 2020-10-21 13:42:04 +02:00
requests.go add subcommand 'following' 2020-10-23 19:54:15 +02:00
rss.template make strings.ReplaceAll available in templates 2020-11-25 14:49:49 +01:00
types.go add retweet and fav count 2020-10-21 09:03:22 +02:00

Readme.md

drivel

drivel is a Twitter command line interface. This project is archived/unmaintained.

You can find releases on releases.gutmet.org or build it yourself.

build

Checkout the repository and compile with

go build -o drivel

usage

To get up to the last 200 tweets of your home timeline:

drivel home

To get up to the last 200 tweets of your mention timeline:

drivel mentions

To get up to the last 200 tweets of @USER:

drivel timeline USER

To like a tweet with a specific ID:

drivel like TWEET_ID

To retweet a tweet with a specific ID:

drivel retweet TWEET_ID

To lookup tweets with specific IDs:

drivel lookup TWEET_ID1 [TWEET_ID2 TWEET_ID3 ...]

To get a list of the people you follow:

drivel following

To wipe your timeline and likes (keepDays defaults to 10, can only reach back as far as the result of the timeline):

drivel wipe

To update your status with optional media upload:

drivel status STATUS [FILE1 FILE2 ...]

To reply to a tweet with a specific ID:

drivel reply TWEET_ID MESSAGE [FILE1 FILE2 ...]

To quote a tweet with a specific ID:

drivel quote TWEET_ID MESSAGE [FILE1 FILE2 ...]

with any number of files, as long as they are .jpg, .png, .gif or .mp4 and smaller than 50 MB each. On first use, drivel will ask you to go to https://apps.twitter.com/app/new, register a new app and create an access token. Those values will be stored in HOME/.drivel/ for later use.

drivel will automatically split large status messages and multiple files into separate tweets belonging to the same thread.

The results of the 'home' and 'mentions' commands can be filtered to only include certain user names. Create text files 'AllowlistHome' and 'AllowlistMentions' in HOME/.drivel and list allowed users line by line.

Each command (other than wipe) can use a go text template to format the printed results - pass a file name to '--template'. The template is executed with a slice of []Status. See types.go for available data fields and example.template for a minimalist example.

For more options consult 'drivel help COMMAND'.

final note

drivel does not sanitize/validate user input.