If you download your #Twitter archive it arrives wrapped as a static HTML page, which is not very useful for doing anything with, and worse: it requires the original account to be still active to do useful things like enlarge the images since they use t.co links.
So here's a #Python script to convert a Twitter archive to #markdown or other formats: https://github.com/timhutton/twitter-archive-parser
Now you can archive your tweets in any way you want.
A helpful person (@masukomi ) pointed out that Twitter archives don't even contain full-resolution images. Grrr!
The first one I looked at was 600x809 in the archive. If I download it from Twitter appending ?format=jpg&name=large then it gives me an image that is 780x1052.
@timhutton @masukomi Ugh. Yay waiting a day for a half-assed archive.
Got my archive a day ago and did not have any of my bookmarks, it did have lots of”ads you may have seen lately “ though. So now going through them all and manually creating lists offline that are relevant for my research around NFTs, AI and IP law.
There are ads in the archive?!?!
I didn't see any in mine but I didn't mine it thouroughly. Is there anything notable in the related JSON we can filter on?
My archive came bundled up with an HTML page so you got sort of an offline Twitter with all of the content. I was looking for my bookmarks which were not there, I assume there is an attribute you can parse for the ads but didn't look.
@timhutton @masukomi
QQ: does this also have fetch/save alt text options? There's a web alt-text saver but it did not work for me.
no, not yet. I don't see the alt text in the JSON data file they provide either so it'd probably require screen-scraping to get.
Probably not hard, but I think I'll leave that enhancement to Tim as I'm really not a Python geek.
@timhutton I tried to run twitter-archive-parser (https://github.com/timhutton/twitter-archive-parser) but get error messages. Just to be sure I'm not trying in vain, is your code still valid?
@timhutton @masukomi that's pretty standard unfortunately -- Facebook did the same thing when I fetched my archive from them a few years back. It didn't occur to me to write a script to try to fetch larger versions though, so thank you for that!
@timhutton @masukomi is it possible to merge a Twitter account into Mastodon? I thought I saw something about that.
Like, import the history of tweets into a mastodon (or similar) server? not that I've heard of. Haven't even heard of anyone working on that.
@masukomi @timhutton Thanks for responding. I think I misunderstood a post I saw previously.
to be clear, as a rails dev (mastodon being rails), i see no reason it shouldn't be 100% doable. You'd probably need direct access to the database on your mastodon instance (which few have) but it should be doable.
I guess you could also, just replay the tweet history as NEW posts on mastodon (insert them as if you'd posted them at the time you ran the script) but... tweets tend to be very dependent upon the time they were uttered, it'd be weird to suddenly see someone posting about obama having just gotten elected, for example.
@masukomi @timhutton It’s probably best to just let it go. I did it with Facebook, so I can do it with Twitter. It’ll feel like more of a loss this time.
@timhutton @masukomi Thanks for doing the legwork on this. Super helpful!
@timhutton @masukomi
Looks like you have to know the size.... "?format=jpg&name=4096x4096"
https://pbs.twimg.com/media/FhtsYxrXwAUiLUC?format=jpg&name=4096x4096
@timhutton @masukomi
That picture is NOT 4096x4096, though, so maybe it will just return the largest size it has if you specify that.
@timhutton @selulven @masukomi
This Python tool might not work as reliably as it once did. There seems to be problems with the links and photos on the birdsite
https://nitter.it/lizrhoffman/status/1594798293787488256
Failed to consider the consequences of the currently burning in TwitterHQ's systems.