News for hackers. Stuff that matters.
Re:A new and improved Twitter API by thinkingemote on Friday July 17, 2020 @09:28AM (#23870210)
One amazing use of the twitter API is to be able to mass delete your favs, rts, and tweets. It's the only thing I use it for as the API and platform as a whole is otherwise hostile.

https://github.com/MikeMcQuaid/TwitterDelete

Re:A new and improved Twitter API by esnard on Friday July 17, 2020 @10:00AM (#23870524)
Last time I checked (2 months ago, I think), the API couldn't fetch more than the 3600 latest liked / posted tweets. Has this changed?
Re:A new and improved Twitter API by thinkingemote on Friday July 17, 2020 @11:12AM (#23871390)
Yes, the API can only get the most recent tweets but the script above can be used with the tweets.csv file provided within your downloadable Twitter Archive. You can delete tweets of any age via the API.

I had to use the archive initially to delete most of the old stuff but now I never have more than a few tweets to delete.

Re:A new and improved Twitter API by ceejayoz on Friday July 17, 2020 @10:15AM (#23870669)
If you delete the first 3600 tweets, the next 3600 should now be the latest posted.
Re:A new and improved Twitter API by esnard on Friday July 17, 2020 @10:27AM (#23870796)
You're technically right, but the Twitter API won't return the next 3600, even after deleting the first ones. The response will be empty, even if you know for sure there's more.
Re:A new and improved Twitter API by londons_explore on Friday July 17, 2020 @03:53PM (#23874745)
Meaning the API is leaking the number of deleted tweets?

Could you make a tool to find out how many tweets someone has deleted?

Re:A new and improved Twitter API by esnard on Friday July 17, 2020 @04:39PM (#23875254)
No, my understanding is that Twitter has a "bucket" of the latest 3600 tweets you've posted / liked. This bucket is faster than their database to query, so once you empty the bucket, the API returns no result, and the bucket is never "refilled" from the database.

Those are not technical terms, sorry, but this is how I currently understand it so it might help you too?

Re:A new and improved Twitter API by lacker on Friday July 17, 2020 @06:32PM (#23876748)
Rather than “buckets”, I bet they just have a flag on each tweet in the database for whether it’s deleted. So if you delete the most recent 3600, next time they do a query to see recent tweets, it retrieves 3600, but they’re all deleted, so it filters them all out. Buckets are a little less likely implementation wise because you’d either sometimes see that the most recent bucket had very few tweets in it, or they’d have to be constantly shuffling tweets between buckets.
Re:A new and improved Twitter API by djsumdog on Friday July 17, 2020 @11:34AM (#23871637)
A friend of mine did a blog post on deleting favs recently:

https://tom.eastman.nz/2020/06/what-it-took-to-delete-my-lik...

Re:A new and improved Twitter API by abc126589 on Friday July 17, 2020 @11:23AM (#23871513)
Shameless plug, Twitter Archive Eraser was designed for mass tweet deletion. As of today it has deleted 3.4 billion tweets https://martani.github.io/Twitter-Archive-Eraser