jtannen / tableauscraper

Scrape data from a Tableau dashboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tableauscraper

Fetch the data behind a Tableau Dashboard.

Installation

You can install the released version of tableauscraper from github with:

devtools::install_github("https://github.com/jtannen/tableauscraper")

Example

tableauscraper provides functions to (1) create a config from a website with Tableau Dashboard, and then (2) download and extract the data:

library(tableauscraper)

## optionally, save this config.
config <- gen_config(
  "https://www.phila.gov/programs/coronavirus-disease-2019-covid-19/vaccines/data/"
)

dfs <- scrape_tableau(config)

NOTE: I haven't tested this on many dashboards, so have no idea if some dashboards have different setups. I make no guarantees.

Adapted from the amazing code at
https://stackoverflow.com/questions/64094560/how-do-i-scrape-tableau-data-from-website-into-r

About

Scrape data from a Tableau dashboard.


Languages

Language:HTML 96.2%Language:R 3.8%