How to extract Tweets from a specific account?

27 views
Skip to first unread message

Omar André Gonzáles Díaz

unread,
Jun 5, 2017, 10:03:54 AM6/5/17
to rtweet
Hi, for a research I need to collect all tweets from a specific account.

https://twitter.com/Sismos_Peru_IGP #Page targeted


I've tried using the "search_tweets" function.

Problems: 1) n cannot be a very larrrrge number. I need to extract all tweets from 2017.
2) I cannot specify a user, but a query.  And as mentioned I need to target a specific public profile.

Is there some function from the package I'm missing?


library(rtweet)
library(dplyr)

igp <- search_tweets("Sismos_Peru_IGP", n = 1000000000, token = twitter_token)


igpV2 <- igp %>%
         filter(grepl("Sismos_Peru_IGP", screen_name))

Reply all
Reply to author
Forward
0 new messages