Ha An Tran
Ha An Tran

Reputation: 357

Automatically download csv file with hidden link

I'm trying to write a function that automatically download the table from the link below (when you click Tabelle exportieren->CSV-export button on the right) https://www.marktstammdatenregister.de/MaStR/Einheit/Einheiten/OeffentlicheEinheitenuebersicht

The thing is, when I checked its HTML code, there is no link for the .csv file (href = '#'), seems like the link was hidden.

Is there any way to search for that hidden link, with some filters applied for the table?

Upvotes: 0

Views: 445

Answers (1)

Anup
Anup

Reputation: 250

The website is loading the data dynamically, i.e. there is a server at the backend which is populating the result, for this you need to use selenium package and then capture the html.

Upvotes: 1

Related Questions