-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|208|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> File Access


 
Jayenkai
Created : 20 August 2021
Edited : 20 August 2021
System : Cross Platform
Language : PHP

Search Your Twitter Archive



Wanting to grab all my "Today's Stroll" tweets and bundle them into a spreadsheet, I tried all manner of Web Rip tools, but nothing seemed to do what I wanted.
In the end, I instead downloaded my Complete Twitter Archive. Head to twitter settings/Your Account/"Download an archive"
Takes about 24 hours to prepare, then it lets you download a huge (mine was 5gb!!) archive of all your tweets, along with all the included media and whatnot.

.. And then I was right back at square one, because although I had all the files there, it was all a great big sodding mess.

Eventually, I decided to write a php script to scan for a search string, and export anything it finds into a Tab-Seperated-Values file.
Seems to work well enough.
It hunts for the string within your tweets, adds it to the list of results, sorting them by date as it goes.
The exported values include the date, \t, the tweet, \t, then a link to the tweet.

If you've downloaded your twitter archive, you might find this useful.


 

Comments


Friday, 20 August 2021, 12:59
PHS
Cool man.