0
votes

I am trying to make some code that would download a file. Now this file from this website specifically, once you go on to that link, it takes 5 seconds for it to actually prompt the download, for example: https://sourceforge.net/projects/esp32-s2-mini/files/latest/download

I have tried using the obvious methods such as wget.download and urllib.request.urlretrieve

urllib.request.urlretrieve('https://sourceforge.net/projects/esp32-s2-mini/files/latest/download', 'zzz')

wget.download('https://sourceforge.net/projects/esp32-s2-mini/files/latest/download', 'zzzdasdas')

However, that does not work, it downloads somethings else, but not what I want it to.

Any suggestions would be great.

This may be a job for selenium. It brings up a browser and interacts with that. - tdelaney