twitter-timeline-cleaner/README.md

40 lines
1.4 KiB
Markdown
Raw Normal View History

2021-05-11 15:30:43 +02:00
# Twitter timeline cleaner
2021-07-25 23:32:14 +02:00
*Clean your Twitter timeline*
This script let you keep clean yout Twitter timeline, removing old tweets.
2021-05-11 15:30:43 +02:00
2021-07-25 23:26:33 +02:00
## Prerequisites
2021-07-25 23:32:14 +02:00
2021-05-11 23:26:45 +02:00
Before running, remember to set these environment variables:
2021-05-11 15:30:43 +02:00
2021-05-11 15:43:29 +02:00
```
2021-05-11 15:35:31 +02:00
export TWITTER_ACCESS_TOKEN=''
export TWITTER_ACCESS_TOKEN_SECRET=''
export TWITTER_CONSUMER_KEY=''
export TWITTER_CONSUMER_SECRET=''
export TWITTER_NAME='@your_twitter_name'
2021-05-11 15:43:29 +02:00
```
2021-05-11 15:30:43 +02:00
2021-05-11 23:26:45 +02:00
and follow the instructions to claim a [Twitter developers account](https://developer.twitter.com/en/apply) and [to create an app](https://developer.twitter.com/en/apps/create), needed to fetch your Twitter timeline's tokens and keys.
2021-05-11 15:30:43 +02:00
2021-07-25 23:26:33 +02:00
## Usage
```
usage: twitter-timeline-cleaner.py [-h] --until UNTIL_DATE [--dry-run] [--save] [--limit LIMIT]
Maintain clean your Twitter timeline
optional arguments:
-h, --help show this help message and exit
--until UNTIL_DATE delete tweets until this date (YYYY-MM-DD)
--dry-run simulate (don't delete anything)
--save save deleted tweets in JSON
--limit LIMIT define how many tweets to delete (default: all)
```
2021-05-11 16:10:14 +02:00
Article in italian talking about this project: [Ripulire la propria Twitter timeline](https://www.zerozone.it/tecnologia-privacy-e-sicurezza/ripulire-la-propria-twitter-timeline/19195)
2021-05-11 16:09:59 +02:00
2021-05-11 15:30:43 +02:00
Work inspired by [delete-tweets](https://github.com/koenrh/delete-tweets) by Koen Rouwhorst
2021-07-25 23:32:14 +02:00