Skip to content

Bulk tweets destroyer is a script for destroying old tweets at once.

License

Notifications You must be signed in to change notification settings

supercomputra/bulk-tweets-destroyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Tweets Destroyer

Environment

Getting the code

$ git clone git://github.com/ZulwiyozaPutra/bulk-tweets-destroyer.git
$ cd bulk-tweets-destroyer

Install dependecy

$ pip install -Ur requirements.txt

Usage

1. Download Your Twitter Data

Download your Twitter Data https://twitter.com/settings/your_twitter_data. It usually takes few minutes until your twitter data is ready to download depending on how many data you have in twitter.

2. Prepare Data as JSON file in The Directory

Unarchive your twitter data and move the data/tweet.js file containing all tweet to the directory. Format the file as JSON file by removing window.YTD.tweet.part0 = in the first line and save the file as data.json.

3. Set Up Twitter Developer Account

Create your own app in twitter https://developer.twitter.com/en/apps/create and get all the keys below:

  • Consumer key
  • Consumer secret key
  • Access token key
  • Access token secret key

4. Run The Script

$ python destroyer.py -d [CUT_OFF_DATE] -k [CONSUMER_API_KEY] -s [CONSUMER_API_KEY_SECRET] --token-key [ACCESS_TOKEN_KEY] --token-secret [ACCESS_TOKEN_SECRET]

Arguments

  -d DATE, --date DATE          Cut-off Date: Delete tweets until this date with format 2020-04-14
  -k KEY, --key KEY             Consumer API key
  -s SECRET, --secret SECRET    Consumer API secret key
  --token-key TOKEN_KEY         Access token key
  --token-secret TOKEN_SECRET   Access token secret

About

Bulk tweets destroyer is a script for destroying old tweets at once.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages