Skip to content

Instantly share code, notes, and snippets.

@RyanHendricks
Created August 13, 2018 18:21
Show Gist options
  • Save RyanHendricks/7c6c108a6e735f9e5401311ad61c073f to your computer and use it in GitHub Desktop.
Save RyanHendricks/7c6c108a6e735f9e5401311ad61c073f to your computer and use it in GitHub Desktop.
library(httr)
library(XML)
results = GET("https://en.wikipedia.org/wiki/List_of_cryptocurrencies")
doc = readHTMLTable(doc=content(results, "text"))
View(doc[1])
library(jsonlite)
library(data.table)
response = fromJSON('https://www.cryptocompare.com/api/data/coinlist')
df = data.table::rbindlist(response$Data, fill=TRUE)
View(df)
df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment