You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You want to harvest all of the friends or followers for a particular user.
## Solution
Use `rtweet::get_followers()` or `rtweet::get_friends()`.
## Discussion
The aforementioned `rtweet` functions give us all the data we need and handle pagination and rate-limits.
Let's see who [Brooke Anderson](https://twitter.com/gbwanderson) follows and who follows her. She's an _incredibly talented_ data scientist, weather expert and educator. We'll pull her followers and friends and work with her data a bit more in future recipes.
- [Official Twitter API documentation](https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/overview) on friends and followers.