So basically, I'm trying to download a file from a website It's quite simple there is just a download button. However the problem is that this download button doesn't directly lead to the file URL but actually leads to an empty page where a download token is given and a download suddenly pops (the page doesn't get redirected to that token) see Image
I tried simply using requests.get()
but that seems to download the html page rather than the file (it doesn't get redirected to the file)
then I tried scraping that empty page for anything that could help but it just seems empty there is nothing there but html
and body
tags
I'm trying to use selenium but I still don't know how to "catch" that download Maybe I could click the button and wait for the automated browser (Chrome) to start the download and then get the download url from the browser somehow, maybe with a js script (I'm aware that I'll have to turn off my download manager) but I don't know how or what js script I'll use.