# Collecting Twitter Data

## Documentation for package ‘rtweet’ version 2.0.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A C D E F G I L M N P R S T U W

## -- A --

as_screenname | Mark a user id as a screen name
as_userid | Mark a user id as a screen name
auth_as | Set default authentication for the current session
auth_clean | Remove tokens
auth_get | Get the current authentication mechanism
auth_has_default | Set up default authentication
auth_list | Save an authentication mechanism for use in a future session
auth_save | Save an authentication mechanism for use in a future session
auth_setup_default | Set up default authentication
auth_sitrep | Twitter Tokens sitrep

## -- C --

clean_tweets | Clean text of tweets
client_as | Set default client for the current session
client_clean | Clean clients
client_get | Get the current client
client_has_default | Set up default client
client_list | Save an authentication mechanism for use in a future session
client_save | Save an authentication mechanism for use in a future session
client_setup_default | Set up default client

## -- D --

direct_messages | Get direct messages sent to and received by the authenticating user from the past 30 days
do_call_rbind | Binds list of data frames while preserving attribute (tweets or users) data.

## -- E --

emojis | Defunct: Emojis codes and descriptions data.
entity | Extract methods
Expansions | Expansions
expansions | Expansions

## -- F --

favorite_tweet | Favorites target status id.
Fields | Fields
fields | Fields
filtered_stream | Streaming
flatten | flatten/unflatten data frame
follow_user | Follows target Twitter user.
friendship_update | Updates friendship notifications and retweet abilities.

## -- G --

get_favorites | Get tweets liked/favorited by one or more users
get_followers | Get user IDs for accounts following target user.
get_friends | Get user IDs of accounts followed by target user(s).
get_mentions | Get mentions for the authenticating user.
get_my_timeline | Get one or more user timelines
get_retweeters | Get the most recent retweets/retweeters
get_retweets | Get the most recent retweets/retweeters
get_timeline | Get one or more user timelines
get_timelines | Get one or more user timelines
get_token | Fetch Twitter OAuth token
get_tokens | Fetch Twitter OAuth token
get_trends | Get Twitter trends data.

## -- I --

ids | Extract the ids

## -- L --

langs | Defunct: Language codes recognized by Twitter data.
lat_lng | Adds single-point latitude and longitude variables to tweets data.
links | Create the links
lists_members | Get Twitter list members (users on a given list).
lists_memberships | Get Twitter list memberships (lists containing a given user)
lists_statuses | Get a timeline of tweets authored by members of a specified list.
lists_subscribers | Get subscribers of a specified list.
lists_subscriptions | Get list subscriptions of a given user but does not include the user's own lists.
lists_users | Get all lists a specified user subscribes to, including their own.
list_expansions | Expansions
list_fields | Fields
list_followers | List followers of a specified list
list_get | List information
list_members | List of members from a specified List
list_membership | Lists a specified user is a member of.
list_tweets | Lists tweets of a specified list
lookup_coords | Get coordinates of specified location.
lookup_friendships | Lookup friendship information between two specified users.
lookup_statuses | Get tweets data for given statuses (status IDs).
lookup_tweets | Get tweets data for given statuses (status IDs).
lookup_users | Get Twitter users data for given users (user IDs or screen names).

## -- M --

media_fields | Fields
metrics_fields | Fields
mute_user | Follows target Twitter user.
my_friendships | Lookup friendship information between users.

## -- N --

network_data | Network data
network_graph | Network data

## -- P --

parse_stream | Parser of stream
place_fields | Fields
plain_tweets | Clean up character vector (tweets) to more of a plain text.
poll_fields | Fields
post_destroy | Delete status of user's Twitter account *[Deprecated]*
post_favorite | Favorites target status id.
post_favourite | Favorites target status id.
post_follow | Follows target Twitter user.
post_friendship | Updates friendship notifications and retweet abilities.
post_list | Manage Twitter lists
post_message | Posts direct message from user's Twitter account
post_mute | Follows target Twitter user.
post_status | Posts status update to user's Twitter account
post_tweet | Posts status update to user's Twitter account
post_unfollow_user | Follows target Twitter user.

## -- R --

rate_limit | Rate limit helpers
rate_limit_reset | Rate limit helpers
rate_limit_wait | Rate limit helpers
read_twitter_csv | Read comma separated value Twitter data.
retrieve_errors | Expose errors of the response
round_time | A generic function for rounding date and time values
rtweet-deprecated | Deprecated functions in rtweet
rtweet_app | Authentication options
rtweet_bearer | Authentication options
rtweet_bot | Authentication options
rtweet_client | Client
rtweet_oauth2 | Authentication options
rtweet_user | Authentication options
rules | Extract the streaming rules

## -- S --

sample_stream | Streaming
save_as_csv | Save Twitter data as a comma separated value file.
search_30day | Premium Twitter searches
search_fullarchive | Premium Twitter searches
search_tweets | Get tweets data on statuses identified via search query.
search_tweets2 | Get tweets data on statuses identified via search query.
search_users | Search for users
set_expansions | Expansions
set_fields | Create fields
set_scopes | Scopes of the OAuth2 token
stopwordslangs | Defunct: Twitter stop words in multiple languages data.
stream | Streaming
stream_add_rule | Streaming
stream_rm_rule | Streaming
stream_tweets | Collect a live stream of Twitter data

## -- T --

trends_available | Available Twitter trends along with associated WOEID.
tweets_data | Get tweets from users, or users from tweets
tweets_with_users | Parsing data into tweets/users data tibbles
tweet_counts_all | Count tweets
tweet_counts_recent | Count tweets
tweet_delete | Delete tweet
tweet_embed | Create a Tweet Embed
tweet_expansions | Expansions
tweet_fields | Fields
tweet_get | Get tweet information
tweet_liking_users | Liking users
tweet_post | Post a tweet
tweet_quoted | Get quoted tweet information
tweet_retweeted_by | Tweet retweeted by
tweet_search_all | Search in the Twitter archive
tweet_search_recent | Search recent tweets
tweet_shot | Capture an image of a tweet/thread
tweet_threading | Collect statuses contained in a thread

## -- U --

unflatten | flatten/unflatten data frame
unfollow_user | Follows target Twitter user.
users_data | Get tweets from users, or users from tweets
users_with_tweets | Parsing data into tweets/users data tibbles
user_block | Blocking or unblocking twitter users
user_blocked | Find users blocked.
user_bookmarks | Retrieve user bookmarks
user_by_username | Search users by username
user_expansions | Expansions
user_fields | Fields
user_followers | Find followers.
user_following | Find which users are being followed.
user_liked_tweets | Liked tweets from a user
user_lists | Search users by username
user_list_follows | Lists a specified user follows
user_mentions | Tweets mentioning a user
user_muted | List muted users
user_search | Search users
user_self | Tweets from a user
user_timeline | User timeline
user_tweets | Tweets from a user
user_unblock | Blocking or unblocking twitter users

## -- W --

write_as_csv | Save Twitter data as a comma separated value file.