简体   繁体   中英

Is it possible to extract data from published Tableau workbook / server using python

As in title, any way to read data to a Pandas DataFrame?

Can't find much info about it anywhere. Found something about Tableau Data Extract and their SDK, but the first one doesn't seem to apply and can't find documentation for the latter.

Anyone can point me into the right direction?

Thanks

There are two options I am aware of:

  1. Tabcmd

Download the data as csv then load it in to a pandas data frame.You can use the subprocess module to run tabcmd from python.

Eg: tabcmd export "Sales_Workbook" --csv -f "output.csv" -s http://tabserver.mycompany.com -u admin -p mypassword -t your_sitename

  1. Tableau REST API

Eg: GET /api/api-version/sites/site-id/views/view-id/data?vf_<fieldname>=filter-value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM