Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imwally/untweet
Destroy tweets and likes.
https://github.com/imwally/untweet
delete destroy dislike ephemeral go golang like remove tweets twitter unlike
Last synced: 10 days ago
JSON representation
Destroy tweets and likes.
- Host: GitHub
- URL: https://github.com/imwally/untweet
- Owner: imwally
- Created: 2019-09-17T05:01:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T21:12:49.000Z (over 4 years ago)
- Last Synced: 2024-10-11T02:49:11.004Z (26 days ago)
- Topics: delete, destroy, dislike, ephemeral, go, golang, like, remove, tweets, twitter, unlike
- Language: Go
- Homepage:
- Size: 7.45 MB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# untweet
A little command line utility that destroys likes and tweets.
## Install
### Binaries
Check out the [latest
release](https://github.com/imwally/untweet/releases/latest) for macOS
and Linux binaries.### Go
`go get -u github.com/imwally/untweet/cmd/untweet`
## Requirements
To communicate with Twitter's API you will need the following:
- Consumer Key
- Consumer Secret
- Access Token
- Access Token SecretWhich means you will need to create an app through [Twitter's developer
portal](https://developer.twitter.com/en/docs/basics/getting-started).## How to Use
The 4 keys from above are required for every call to
`untweet`. Environment variables are also supported:```
TWITTER_API_KEY
TWITTER_API_KEY_SECRET
TWITTER_API_TOKEN
TWITTER_API_TOKEN_SECRET
```or use command line flags:
```
-key string
Twitter API Consumer Key
-key-secret string
Twitter API Secret Key
-token string
Twitter API Access Token
-token-secret string
Twitter API Access Token Secret
```### Usage
```
USAGE:
untweet command [command options]COMMAND:
dump Dump likes or tweets
tweets Destroy tweets
likes Destroy likesOPTIONS:
Use -h on each command to view options
```## Backup Before You Destroy
Dump all likes or tweets to stdout in json format:
```
$ untweet dump -likes
``````
$ untweet dump -tweets
```## Other Useful Information
Keep likes of tweets from people you follow:
```
$ untweet likes -keep-following
```Destroy tweets older than a certain time (from now):
__1 week__
```
$ untweet tweets -older 168h
```__48 hours__
```
$ untweet tweets -older 48h
```Checkout Go's [time package](https://golang.org/pkg/time/#ParseDuration) for more valid duration strings.