bertrandmartel / tableau-scraping

Tableau scraper python library. R and Python scripts to scrape data from Tableau viz
MIT License
126 stars 20 forks source link

Radio Button filtering does not work #71

Open yashdubey132 opened 1 year ago

yashdubey132 commented 1 year ago

When attempting to use the serFilter() method for a worksheet with radio buttons, no dictionary is returned.

The rendering seems to be happening on the client side so I don't think that's the issue.

Here's my sample code:


from tableauscraper import TableauScraper as TS
import requests

url = "https://public.tableau.com/shared/99WD3TBJK"

ts = TS(delayMs=500)
ts.loads(url)
workbook = ts.getWorkbook()

storypoint = workbook.goToStoryPoint(storyPointId=3)
worksheet = storypoint.getWorksheet("Sources map")
wf = worksheet.setFilter("Scenario","Long term")```