Reading Tableau data with Python

Viewed 1211

I have a tableau server hosted on a remote server. There are some tables/views(in RDBMS) which are connected to Tableau for reports and dashboards.

Is there a way that I can connect to Tableau and read those tables ? If yes, then could you please provide a snippet of code where you are able to see data from a tableau view!

Note: I don't want to read data from RDBMS. I want to read those tables/views directly from Tableau

1 Answers

You can access the data used by a Tableau view with the REST API endpoint Query View Data.

Take a look at the Tableau Server Client library (python) method views.populate_csv which uses this API.

Related