【发布时间】:2015-04-28 18:43:20
【问题描述】:
我正在尝试使用 Python 制作爬虫。我正在使用 beautifulsoup 和 requests 库,并且需要给定网站的一组 URL。但是,在某个部分,存在重定向,当我打印 response.text 即页面内容时,我得到以下几行
<script>
<!--
window.location = "redirect_URL/index.php"
-->
</script>
如何检索此 url 以便抓取此 url
【问题讨论】:
标签: python beautifulsoup web-crawler python-requests url-redirection