Posts

Showing posts with the label analytics

Download your Tweet Activity report using R

Image
My blog is now  on Medium ! Recently I wanted to analyze my tweets' performance. As you may know,  Twitter Analytics  provides detailed data of a twitter account's tweets: number of impressions, engagement rate, number of retweets, link clicks, etc. What I didn't know was that the website restricts the maximum possible date range you can see (and download) to a 91-day window, but I wanted to analyze more data. Instead of downloading reports 91 days at a time, I wrote an R script which does the dirty work. It downloads the tweet activity data from Twitter Analytics for  any   given period. If the selected date range is longer than 91 days, the download is split into several downloads. Installation To install the script you will need the  devtools package and  the  RSelenium package : install.packages("devtools") library(devtools) install_github("ropensci/RSelenium") Then you can install the script directly from GitHub by running: ...