koenrh / delete-tweets

Delete tweets from your timeline.
ISC License
791 stars 107 forks source link

Structure of archive seems to have changed #82

Open angelcaceres opened 4 years ago

angelcaceres commented 4 years ago

I have run the script in my computer. I want to delete all the tweets prior to march 14th 2018 that have less than 500 likes. I executed the script like this:

delete-tweets --until 2018-03-14 tweet.js --spare-min-likes 500

I had about 150k tweets in my account and when the script was finished i checked and i still had ~100k tweets in my account. I thought that it was unlikely that i had posted 100k tweets in the last two years so i searched in my tweets and i found that there still were tweets from several years ago in my account. So i took one of the id's and searched for it in the tweet.js file and could not find it. I found that there is another file named "tweet-part1.js" and i found the id on that file. I am not sure if this only happens with people that tweet a lot like i seem to do but i think this is something that should be taken into account.

koenrh commented 4 years ago

Hey @angelcaceres, thanks for reporting.

I don't think I have seen this before, but maybe I just haven't come across people that have been tweeting so much!

It should be fairly straightforward to update the script to also look for files named tweet-partN.js. Would you mind sharing the first few lines of that tweet-part1.js file? So that I can check if it has the same structure.

Thanks!

yackx commented 4 years ago

You had ~150k and ~100k remained so the script deleted about ~50k... which seems to match the monthly limit at the moment.

Screenshot 2020-09-19 at 11 23 35