Skip to content

Instantly share code, notes, and snippets.

View mjhendrickson's full-sized avatar

Matthew Hendrickson mjhendrickson

View GitHub Profile
# -----Set up environment -----
library(tidyverse)
library(rvest)
# ===== Scrape Transcript =====
## Scrape episode 1 HTML as list
ep01_html <- 'https://www.datacamp.com/community/blog/data-science-past-present-future'
## Creates a list of lists of HTML load
ep01_webpage <- read_html(ep01_html)
@mjhendrickson
mjhendrickson / rtweet exploration
Last active May 23, 2018 22:38
Exploration of rtweet
# ----- Load libraries -----
library("rtweet")
library("devtools")
library("tidyverse")
library("gridExtra")
# ----- Connection data (removed) -----
appname <- "" # name of twitter app
key <- "" # api key
secret <- "" # api secret