python3 获取request 302跳转后最终的URL
python3 获取request 302跳转后最终的URL 代码: import requests resp = requests.get(rtsp_url, timeout=(3, 7)) if len(resp.history) > 0: location_url = resp.history[len(resp.history) - 1].headers.get('Location') 作者:這个帥哥不太冷正在掘 链接:https://juejin.cn/post/7057345207381000223 来源:稀土掘金 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。