Category: Twitter
-
Creating a Retweet Network for Gephi from a local file with Python
In the last tutorial I showed how you can collect old Tweets through the Premium API. The result was a jsonl-file which contains all the Tweets as json objects. This time we will create a gexf-file from those Tweets which you can use with Gephi or another network analysis tool. 1. Loading the Tweets from…
-
Collecting old Tweets with the Twitter Premium API and Python
The Twitter Standard API is limited to Tweets from the last 7-10 days. This isn’t enough for most research projects. Since 2018 Twitter offers a Premium API through which the full Twitter archive is accessible. I used it for several projects and am working on implementing it in my Twitter analysis tool to make it…
-
Unblock all blocked Twitter accounts at once
Update 21.04.2020: The code still works, but only if you set the account language to English. Update 23.11.2019: There are reports that Twitter started to prevent the automated unblocking of accounts. After some 50 to 100 unblocks, the page with blocked accounts get blocked. As a result the script may currently not work. Update 17.11.2019:…
-
Everyone I ever interacted with on Twitter
I took the 43 058 tweets I wrote between 2008 and 2017, extracted all twitter handles and created a graph that shows how they are following each other today. Stop, I can’t see anything. Overview There are three pretty distinct clusters. In orange at the top is Germany (30%). In red at the bottom right…