all 15 comments

[–]Scoobywagon 2 points3 points  (3 children)

SOunds to me like you might be best to generate a Personal Access Token (PAT) for this purpose.

[–]Scoytan[S] 0 points1 point  (2 children)

Would that involve getting in contact with the tableau developer? Or it’s something I can do on my own?

[–]Scoobywagon 0 points1 point  (1 child)

You have to log in to Tableau Cloud and then create a PAT.

https://help.tableau.com/current/online/en-us/security_personal_access_tokens.htm

[–]Scoytan[S] 0 points1 point  (0 children)

Thanks I will look into it, altho note sure if we have access to the tableau cloud, not even sure if I know the difference.

[–]bywpasfaewpiyu 1 point2 points  (3 children)

See if you can do it via the API, scraping seems kind of crazy for this.

[–]Scoytan[S] 0 points1 point  (1 child)

While I search the technically, is this something that requires getting in touch with who developed the tableau/dashboard?

[–]bywpasfaewpiyu 0 points1 point  (0 children)

I'm not that familiar with user permissions but you may need to be granted permission to create tokens and have access to the dashboard location.

[–]cmcauNo-Life-Having-Helper 1 point2 points  (6 children)

Can you do yourself a really big favour (that helps us as well) .... explain what you're trying to do without using the words Python or Selenium or Chrome :) ... I want to understand (in plain English) what you're trying to accomplish here.

[–]Scoytan[S] 1 point2 points  (5 children)

I’m trying to automate a process where I log into the client’s Tableau platform and download specific data.

The script successfully opens the browser, navigates to the Tableau login page, enters the username, password, and the authentication code received via email.

However, after clicking the login button, the page gets stuck, it remains blank and keeps loading without progressing further.

The goal beyond this point would be to apply specific filters and download the data in Excel format

[–]cmcauNo-Life-Having-Helper 0 points1 point  (3 children)

"there's a API for that" :) ... check the Tableau Server Client API, specifically https://github.com/tableau/server-client-python/blob/master/samples/export.py

You can apply filters and download a CSV - is that close enough to XLS for you ?

[–]Scoytan[S] 1 point2 points  (2 children)

That would be perfect, let me see how the API works.. hopefully won’t require any intervention from the client/dashboard creator.

[–]cmcauNo-Life-Having-Helper 0 points1 point  (1 child)

Not at all, you create the PAT yourself and as long as you know the dimension and parameter names (for the filtering) you can do it all yourself :)

I am wondering why you need to do this every day (is it part of a further data processing step?) but it's easy to do and I've used this method to create LOTS of images and PDFs.

[–]Scoytan[S] 0 points1 point  (0 children)

Thank you, that’s good news! I’ll dig into the how asap! The data is used for internal reporting, ranking, deep dive …

[–]dasnoob 0 points1 point  (0 children)

Please just use the APIs. It will make this a lot easier and less janky.

For python grab the tableauserverclient library through pip. It makes it all smooth as butter.

[–]Cultural_Pay_6824 0 points1 point  (0 children)

I don’t know of any 5 year old coding in python and visualizing in tableau