All Projects → mkearney → rtweet.download

mkearney / rtweet.download

Licence: other
{rtweet} helpers for automating large or time-consuming downloads

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to rtweet.download

cspan data
A repo for tracking the number of followers of Congress, the Cabinet, and Governors
Stars: ✭ 16 (-33.33%)
Mutual labels:  twitter-api, rtweet, twitter-data
nicar tworkshop
Slides for #NICAR18 workshop on collecting and analyzing Twitter data
Stars: ✭ 23 (-4.17%)
Mutual labels:  twitter-api, rtweet, twitter-data
Tweetbotornot
🤖 R package for detecting Twitter bots via machine learning
Stars: ✭ 355 (+1379.17%)
Mutual labels:  twitter-api, r-package
viewtweets
🙈🐵 View tweets (timelines, favorites, searches) in Rstudio 🐵🙈
Stars: ✭ 21 (-12.5%)
Mutual labels:  twitter-api, rtweet
polyglot
🎓Use the R Console as an interactive learning environment
Stars: ✭ 26 (+8.33%)
Mutual labels:  r-package
DSTC6-End-to-End-Conversation-Modeling
DSTC6: End-to-End Conversation Modeling Track
Stars: ✭ 56 (+133.33%)
Mutual labels:  twitter-data
Tweetstorm
🐦 Twitter UserStream APIの簡単な代替実装 / A simple substitute implementation for the Twitter UserStream
Stars: ✭ 55 (+129.17%)
Mutual labels:  twitter-api
rrlite
R interface to rlite https://github.com/seppo0010/rlite
Stars: ✭ 16 (-33.33%)
Mutual labels:  r-package
twitter-most-followed-scripts
Scripts to find the most commonly followed Twitter accounts by a group of people
Stars: ✭ 25 (+4.17%)
Mutual labels:  twitter-api
gotwi
A library for using the Twitter API v2 in the Go language. (It is still under development).
Stars: ✭ 32 (+33.33%)
Mutual labels:  twitter-api
twittered
Twitter API client for Java developers
Stars: ✭ 170 (+608.33%)
Mutual labels:  twitter-api
2017-year-in-review
Year in Review with R Rmd Template
Stars: ✭ 34 (+41.67%)
Mutual labels:  twitter-api
dplyr.teradata
A Teradata Backend for dplyr
Stars: ✭ 16 (-33.33%)
Mutual labels:  r-package
WeightedTreemaps
Create Voronoi and Sunburst Treemaps from Hierarchical data
Stars: ✭ 33 (+37.5%)
Mutual labels:  r-package
GAlogger
Log R Events and R Usage to Google Analytics
Stars: ✭ 23 (-4.17%)
Mutual labels:  r-package
larry
Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go
Stars: ✭ 64 (+166.67%)
Mutual labels:  twitter-api
sl3
💪 🤔 Modern Super Learning with Machine Learning Pipelines
Stars: ✭ 93 (+287.5%)
Mutual labels:  r-package
dataspice
🌶️ Create lightweight schema.org descriptions of your datasets
Stars: ✭ 151 (+529.17%)
Mutual labels:  r-package
NetBID
Data-driven Network-based Bayesian Inference of Drivers
Stars: ✭ 21 (-12.5%)
Mutual labels:  r-package
bittrex
A R Client for the Bittrex Crypto-Currency Exchange
Stars: ✭ 26 (+8.33%)
Mutual labels:  r-package

rtweet.download

CRAN status Lifecycle: experimental

Automating the collection of Twitter data (via {rtweet})

Installation

You can install the released version of {rtweet.download} from CRAN with:

install.packages("rtweet.download")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("mkearney/rtweet.download")

Friends IDs

Twitter’s "friends/ids" API endpoint is rate limited to 15 requests (or the friend IDs of 15* accounts) per 15 minutes. So while a single call using rtweet::get_friends() can retrieve the friend IDs of up to 15 users, a single call using rtweet.download::get_friends_download() can retrieve the friend IDs of hundreds or even thousands of users!

API Feature Value
  Endpoint "friends/ids"
  Rate limit (per 15 min.) 15
  Friends per request 5000*
R Package Function
  {rtweet} get_friends()
  {rtweet.download} get_friends_download()

The example below uses get_friends_download() to automate the collection of friend (accounts followed by) IDs of users on @Teradata’s list of data science influencers.

## get members on data science influencers influence
data_sci_influencers <- rtweet::lists_members(
  owner_user = "Teradata", slug = "data-science-influencers"
)

## download friend IDs for each user
fds <- get_friends_download(data_sci_influencers$screen_name)

## preview data
head(fds)

Users data

Twitter’s "users/lookup" API endpoint is rate limited to 900 requests (or 90,000 users) per 15 minutes. So while a single call using rtweet::lookup_users() can retrieve data on up to 90,000 users, a single call using rtweet.download::lookup_users_download() can collect data on hundreds of thousands or even millions of users!

API Feature Value
  Endpoint "users/lookup"
  Rate limit (per 15 min.) 900
  Users per request 100
R Package Function
  {rtweet} lookup_users()
  {rtweet.download} lookup_users_download()

The example below uses lookup_users_download() to automate data collection for the previously collected accounts followed by data science influencers.

## download users data
fds_data <- lookup_users_download(fds$user_id)

## preview data
head(fds)

Notes

* The "friends/ids" endpoint returns the up to 5,000 friend IDs of a single user, so 15 requests can only return all the friend IDs of 15 users if all 15 of those users follow 5,000 or fewer accounts. To retrieve all the friend IDs for users following more than 5,000 accounts, multiple requests (friends_count / 5,000) are required.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].