- Request archive, wait for them to generate it, download it
- Open Network Tab
- Delete a tweet
- Find a
POST
toDeleteTweet
- "Copy as curl"
- Save to file
deltw.sh
and mark as executable - Add
-sS -o /dev/null -w '%{http_code}\n'
to the end - Replace the tweet ID (just the numbers) with
'$1'
Run this:
unzip -p twitter-archive.zip data/tweet.js | tail -c+26 | jq '.[]|.tweet.id' -r | while IFS= read -r tweet_id; do deltw.sh "$tweet_id"; sleep 2.0; done
Make a similar script for unfavoriting tweets, and use this to unfavorite everything:
unzip -p twitter-archive.zip data/like.js | tail -c+25 | jq '.[]|.like.tweetId' -r | while IFS= read -r tweet_id; do unfav.sh "$tweet_id"; sleep 2.0; done