I am trying to scrape a Tableau Dashboard using the TableauScraper package in Python.
from tableauscraper import TableauScracper as TS test_url= "https://tableau.faa.gov/#/site/CarolinePoyurs/views/StringencyTrackers_ValidV1/Contributionbarchart?:iid=1" ts=TS() ts.loads(test_ur)
Finishes with the error:
AttributeError: ‘NoneType’ object has no attribute ‘text’.
Any idea why? Or how to fix?
This code runs fine and only change a few characters in the url link:
NASMap_url = "https://tableau.faa.gov/t/_AJRGPerfAnalysis/views/StringencyTrackers/NASMap?%3Aembed=y" ts = TS() ts.loads(NASMap_url)
It is obviously something with the url, but I don’t know enough about website coding or urls in general to know where to start. Both sites are locked behind a firewall that requires VPN access. But since the second link works, the first should as well?
Any help would be appreciated!
Source: Python Questions