Time to continue where I left off. With each US senator’s twitter handle handled, it’s time to get their tweets following a similar create/use-function-and-iterate pattern.
Getting started with
rtweet is relatively simple, and you can follow the directions on the package’s GitHub page.
I have an app already in place. In R, this is all we need to do to get started:
Now we’ll iterate with
This was only partially successful, as I ran up against Twitter’s API Rate limits. That meant that my
tweets object had
about 40 NULL values, and I had to wait an hour before continuing the iteration and binding everything together:
…Not today. Looks like this just became a three part series.