$ git clone git://github.com/ZulwiyozaPutra/bulk-tweets-destroyer.git
$ cd bulk-tweets-destroyer
$ pip install -Ur requirements.txt
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.
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
.
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
$ 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]
-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