COMM497

Collect Twitter user timeline

This post is a static and abbreviated version of this interactive tutorial on using R for social data analytics. What is the rate limit for collecting timeline data According to this Twitter API document, you can get up to 3,200 of a user’s most recent tweets. Scrapping tweets from someone’s timeline is as easy as running the code below. We will get the recent 200 tweets from Elizabeth Warren, a Senator of Massachusetts (@SenWarren).

Collect tweets by keywords/hashtags

This post is a static and abbreviated version of this interactive tutorial on using R for social data analytics. Collect tweets by keywords/hashtags What Twitter Data are Available? From the previous (post)[https://curiositybits.cc/post/r_analytics2/], you have learned that in order to collect data from Twitter API, you must obtain permission, namely. You probably have also noticed that it is not possible to collect as many tweets as you would like to because Twitter imposes rate limit on each API call.

Connecting to the Twitter API

This post is a static and abbreviated version of this interactive tutorial on using R for social data analytics. What is Twitter API? API (Application Programming Interface) is a marketplace of data. Twitter makes some of its data publically available and free of access. To obtain the data, you must register a client app and complete the authentification process. Here you will learn how to connect to the Twitter API with pre-obtained credentials: consumer key, consumer secret, access token, and access secret.

Understand R Libraries/Packages

This post is a static and abbreviated version of this interactive tutorial on using R for social data analytics. What is a library/package? Think of R as an operating system (e.g., iOS, Windows) and a library/package as an app running on the system. Each library is designed to accomplish specific tasks. For example, the library ggplot2–which is a library we will use throughout the semester–is for visualizing data, and the library rtweet is used for collecting Twitter data.