Keep clean your Twitter timeline
Go to file
michelep 61cf145686 v0.0.2 2021-07-25 23:26:33 +02:00
LICENSE Initial commit 2021-05-11 15:21:39 +02:00
README.md v0.0.2 2021-07-25 23:26:33 +02:00
twitter-timeline-cleaner.py v0.0.2 2021-07-25 23:26:33 +02:00

README.md

Twitter timeline cleaner

Clean your Twitter timeline

Prerequisites

Before running, remember to set these environment variables:

export TWITTER_ACCESS_TOKEN='' 
export TWITTER_ACCESS_TOKEN_SECRET='' 
export TWITTER_CONSUMER_KEY='' 
export TWITTER_CONSUMER_SECRET='' 
export TWITTER_NAME='@your_twitter_name' 

and follow the instructions to claim a Twitter developers account and to create an app, needed to fetch your Twitter timeline's tokens and keys.

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)

Article in italian talking about this project: Ripulire la propria Twitter timeline

Work inspired by delete-tweets by Koen Rouwhorst