Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been trying to download files from a site that changes the download links after some time. I tried using wget module to download those files. It does work on the direct links to file but it doesn't download files from links that are temporary they change and do not seem to be direct links of the files. I have to use webbrowser module to open those links so it would download those files I want to download those files directly with python 3. My download manager and my browser can download fromm these links how can I do that in python please help

What I have tried:

I have tried various downloading methods using urlib, requests but none worked
Posted
Updated 29-Aug-18 5:53am
v2
Comments
Richard MacCutchan 29-Aug-18 12:03pm    
You need some way of finding the direct links. Or ask the site owners for help.
Mohibur Rashid 29-Aug-18 20:02pm    
temporary link with 3XX message?
to be specific 307
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Also take a look at this. Try to figure out if there is anything that can be useful to you
https://en.wikipedia.org/wiki/HTTP_location

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900