I'm trying to scrape data from a tableau dashboard on this website
The package itself works amazingly, but I'd also like to filter the data (from the map (the data appears in the worksheet Mapa) by year (Año) and sex (Sexo) based on the dropdown boxes on the dashboard. I suspect that such filtering can be done through the setFilter() function with the argument dashboardFilter=True but am having trouble implementing it and/or am not quite understanding how it works.
I think the problem is because the names of the filters on the dashboard differ from the names of the columns in the actual worksheets and in some cases, do not even exist in the specific worksheet I'm looking for. Is there a way around this? I would be very grateful for any assistance or insight.
I'm trying to scrape data from a tableau dashboard on this website
The package itself works amazingly, but I'd also like to filter the data (from the map (the data appears in the worksheet Mapa) by year (Año) and sex (Sexo) based on the dropdown boxes on the dashboard. I suspect that such filtering can be done through the
setFilter()
function with the argumentdashboardFilter=True
but am having trouble implementing it and/or am not quite understanding how it works.I think the problem is because the names of the filters on the dashboard differ from the names of the columns in the actual worksheets and in some cases, do not even exist in the specific worksheet I'm looking for. Is there a way around this? I would be very grateful for any assistance or insight.
EDIT: The issue is very similar to https://github.com/bertrandmartel/tableau-scraping/issues/7 but I'm struggling to find the right fields to filter the data I would like (or am completely missing something)
Thankyou