Delete (very) old tweets obtained from a twitter archive
Posted by jpluimers on 2023/10/24
[Wayback/Archive] Delete (very) old tweets obtained from a twitter archive comments:
# Largely copied from http://www.mathewinkson.com/2015/03/delete-old-tweets-selectively-using-python-and-tweepy # However, Mathew's script cannot delete tweets older than something like a year (these tweets are not available from the twitter API) # This script is a complement on first use, to delete old tweets. It uses your twitter archive to find tweets' ids to delete # How to use it : # - download and extract your twitter archive (tweet.js will contain all your tweets with dates and ids) # - put this script in the extracted directory # - complete the secrets to access twitter's API on your behalf and, possibly, modify days_to_keep # - delete the few junk characters at the beginning of tweet.js, until the first '[' (it crashed my json parser) # - review the script !!!! It has not been thoroughly tested, it may have some unexpected behaviors... # - run this script # - forget this script, you can now use Mathew's script for your future deletions # # License : Unlicense http://unlicense.org/
It is by [Wayback/Archive] Anil (@TheOtherAnil), who also wrote [Wayback/Archive] @captions_please (mentioned in my earlier post Two more Twitter bots that help with inclusion and accessibility (a11y): @get_altText and @captions_please), see:
[Wayback/Archive] Anil on Twitter: “@captions_please @jazzthefraz ah sorry the bot didn’t run earlier because of a bug. Should be fixed now.”
–jeroen






Leave a comment