5 ms·
Extract Redirected URL Using Python
Greeting Python Experts.
I am working in Scraping where I need to download pdf files. While navigating the Download button of the targeted web page. I get redirected the the google drive which contain pdf file. Is there any way to get the redirected link.
---
I already tried .url module after requests.
----
Another problem is redirected link opens only after 30 second after clicked download button .
-----
- ccbn 7y agoTo get the redirected link you should using head method: https://stackoverflow.com/questions/20475552/python-requests-library-redirect-new-url/30564877#30564877 https://stackoverflow.com/questions/20475552/python-requests...
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]