How to get the redirected URL only but not the actual content?

Peng Yu pengyu.ut at gmail.com
Fri Dec 1 10:55:25 EST 2017


Hi,

Does anybody know how only get the redirected URL but not the actual content?

I guess the request module probably should be used. But I am not sure
how to do it exactly.

Can somebody show me the best way to request
(https://doi.org/10.1109/5.771073) and get the URL
(http://ieeexplore.ieee.org/document/771073/)? Thanks.

-- 
Regards,
Peng



More information about the Python-list mailing list