python如何捕获302重定向URL [英] how do python capture 302 redirect url
本文介绍了python如何捕获302重定向URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试从Web上获取数据,但是页面使用302重定向
如何使用python来获取真实的URL?
i try to fetch data from web,but the page use a 302 redirect how can i use python to fetch the real url?
推荐答案
请参阅第11.7章。 深入Python 系列中的重定向处理。它相当详尽地解释了您的整个问题,包括示例代码和所有内容。
Have a look at chapter 11.7. Handling redirects from the Dive Into Python series. It explains your entire issue in quite a bit of detail, example code and all.
这篇关于python如何捕获302重定向URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文