TableauScraper Package- AttributeError: 'NoneType' object has no attribute 'text'

432 Views Asked by At

I am trying to scrape a Tableau Dashboard using the TableauScraper package in Python.

from tableauscraper import TableauScracper as TS
test_url= "https://tableau.***.***/#/site/CP/views/StringencyTrackers_ValidV1/Contributionbarchart?:iid=1"
ts=TS()
ts.loads(test_url)

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.***.***/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!

1

There are 1 best solutions below

0
On

The issue did end up being about the '#' in the URL. Changing the /#/site to /t/ solved all of my issues. It appears to be an alias/communication issue between in RServer. Thanks for all the help!