Your tableau address is using server side rendering in this situation. It means that no data is supplied to the browser by default, and the server renders visuals with the data (tables, maps, etc.). Selection events are triggered by JS sending mouse coordinates to the server.
However, utilising the filters, you can have some info rendered client-side in your situation. When you choose a filter, such as "specimen," the data is rendered on the client (actual data are sent to the browser).
To extract data from Tableau workbooks, I created a tableau scraper library. You may run the following code to import the tableau data (empty worksheets), get the filter in the Diagnostic Target called Specimen worksheet, and save it. Get the worksheet data for each of these by collecting and iterating each value of this filter:
from tableauscraper import TableauScraper as TS
import pandas as pd
url = "https://public.tableau.com/views/v_7_14_2020/COVID-19TestingCommons"
ts = TS()
ts.loads(url)
workbook = ts.getWorkbook()
ws = workbook.getWorksheet("Diagnostic Target")
specimens = [
t["values"]
for t in ws.getFilters()
if t["column"] == "Specimen Collected"
][0]
pdList = []
for specimen in specimens:
print(f"specimen: {specimen}")
specResultWb = ws.setFilter("Specimen Collected", specimen)
df = specResultWb.getWorksheet("Company and Tests").data
pdList.append(df)
result = pd.concat(pdList, ignore_index=True)
print(result)
Ready to stand out in the world of data visualization? Explore our Tableau Certification Program and unlock a new realm of opportunities by validating your expertise in the industry's leading data visualization tool!