R: twitter persiapan

From OnnoWiki
Revision as of 10:47, 1 November 2018 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


install.packages(c("devtools", "rjson", "bit64", "httr"))
#RESTART R session!
library(devtools)
install_github("geoffjentry/twitteR", username="geoffjentry")
library(twitteR)
#
# request ke https://apps.twitter.com/
#
api_key <- "YOUR API KEY"
api_secret <- "YOUR API SECRET"
access_token <- "YOUR ACCESS TOKEN"
access_token_secret <- "YOUR ACCESS TOKEN SECRET"
setup_twitter_oauth(api_key,api_secret)
searchTwitter("android")


Pranala Menarik