Since twitter decided to index all tweets since 2006 I am trying to use the twitteR package for R to create a complete user's tweet history. In the case below I am trying to create this for Jack Dorsey. I tried this with myself (short history on twitter) and there my while logic worked great. As soon as I reached the beginning of my tweets the retrieval would repeat itself and the while loop would be broken. For some reason with Jack I reach some point in time 2013 until Twitter refuses to give me anymore information. Anybody did this before? Is it actually possible to create this timeline with old data like 2006?
Thanks for any help or tips!
wea_tweets = userTimeline("jack", n=1000)
wea_df <- do.call("rbind",lapply(wea_tweets,as.data.frame))
while (wea_df[nrow(wea_df),8] != wea_df[nrow(wea_df) - 2,8]){
wea_tweets <- userTimeline("jack", n=1000,maxID=as.numeric(wea_df[nrow(wea_df),8]))
wea_df_temp <- do.call("rbind",lapply(wea_tweets,as.data.frame))
wea_df <- rbind(wea_df, wea_df_temp)
}
wea_df <- wea_df[!duplicated(wea_df2),]