【发布时间】:2016-01-17 13:24:44
【问题描述】:
我使用 urllib2 来获取最终重定向的网络链接 url。例如:http://tbk.bz/t72qx4v3 我得到的链接是:
http://taskbucks.com/artcl_out?artcl=24713df2ffb748ec8464638df61d2298
但是,浏览器给出了这样的重定向最终 URL:
www.holidayiq.com/blog/6-high-octane-adventure-sports-in-india-that-will-get-your-heart-in-your-throat-1831.html/
我希望在 python 中获得这个最终 URL。
【问题讨论】:
-
发布你的代码sn-p
标签: python python-2.7 web-scraping urllib2