https://github.com/hpedrorodrigues/twitter-cleaner
Automatically delete tweets, retweets, and favorites from your timeline.
https://github.com/hpedrorodrigues/twitter-cleaner
Last synced: 8 months ago
JSON representation
Automatically delete tweets, retweets, and favorites from your timeline.
- Host: GitHub
- URL: https://github.com/hpedrorodrigues/twitter-cleaner
- Owner: hpedrorodrigues
- Created: 2022-07-15T22:30:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-16T01:04:52.000Z (over 3 years ago)
- Last Synced: 2025-03-08T09:09:03.669Z (8 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Cleaner
Automatically delete tweets, retweets, and favorites from your timeline.
## Usage
### Authentication
This project uses the OAuth 1.0 API, and as such requires api keys to authenticate itself against the Twitter API.
In order to generate those API keys, you'll need to create a new standalone [twitter app][twitter-new-app].
> Note: Please, make sure you change the authentication settings and enable the OAuth 1.0 API with "Read and Write" access.
### Run
**Please, make sure you really want to delete all your tweets before running the available commands below**.
- You can run this project directly on your machine with the following commands:
```bash
brew install hpedrorodrigues/tools/twitter-cleaner
# providing CLI flags
twitter-cleaner \
-consumer-key \
-consumer-secret \
-access-token \
-access-token-secret
# providing environment variables
export TWITTER_CONSUMER_KEY=
export TWITTER_CONSUMER_SECRET=
export TWITTER_ACCESS_TOKEN=
export TWITTER_ACCESS_TOKEN_SECRET=
twitter-cleaner
```
- You can also run this project using the available docker image as below:
```bash
# providing CLI flags
docker run ghcr.io/hpedrorodrigues/twitter-cleaner \
-consumer-key \
-consumer-secret \
-access-token \
-access-token-secret
# providing environment variables
docker run \
-e TWITTER_CONSUMER_KEY= \
-e TWITTER_CONSUMER_SECRET= \
-e TWITTER_ACCESS_TOKEN= \
-e TWITTER_ACCESS_TOKEN_SECRET= \
ghcr.io/hpedrorodrigues/twitter-cleaner
```
[twitter-new-app]: https://developer.twitter.com/apps/new