geoffjentry/twitteR
DEPRECATION
This is the start of a relatively leisurely deprecation period for twitteR
, in favor of using rtweet
. Please start looking to switch over to that package. If you have any questions contact myself or @mkearney
twitteR is an R package which provides access to the Twitter API. Most functionality of the API is supported, with a bias towards API calls that are more useful in data analysis as opposed to daily interaction.
Getting Started
- Please read the user vignette, which admittedly can get a bit out of date
- Create a Twitter application at http://dev.twitter.com. Make sure to give the app read, write and direct message authority.
- Take note of the following values from the Twitter app page: "API key", "API secret", "Access token", and "Access token secret".
- You can use the CRAN version (stable) via the standard
install.packages("twitteR")
or use the github version. To do the latter:-
install.packages(c("devtools", "rjson", "bit64", "httr"))
- Make sure to restart your R session at this point
-
library(devtools)
-
install_github("geoffjentry/twitteR")
-
- At this point you should have
twitteR
installed and can proceed:-
library(twitteR)
-
setup_twitter_oauth("API key", "API secret")
- The
API key
andAPI secret
are from the Twitter app page above. This will lead you throughhttr
's OAuth authentication process. I recommend you look at the man page forToken
inhttr
for an explanation of how it handles caching.
- The
- You should be ready to go!
-
- If you have any questions or issues, check out the mailing list
最近版本更新:(数据更新于 1970-01-01 00:00:00)
geoffjentry/twitteR同语言 R最近更新仓库
2024-09-16 18:09:18 thomasp85/patchwork
2024-03-10 23:55:19 cxli233/FriendsDontLetFriends
2024-01-23 09:29:59 wilkelab/cowplot
2022-10-25 19:45:23 Dralliag/opera
2021-11-02 22:21:46 biobakery/Maaslin2
2020-06-03 15:47:30 roblanf/minion_qc