【发布时间】:2016-06-08 09:20:27
【问题描述】:
我正在尝试访问
https://www.exploit-db.com/remote
使用 python 的请求模块,但没有从页面获取响应。我想访问以上页面的所有链接。
mfun():
response = requests.get('https://www.exploit-db.com/remote',verify=False)
print(response.text)
soup = bs4.BeautifulSoup(response.text)
return [a.attrs.get('href') for a in soup.select('a[href^=/download/]')]
main():
urls = myfun();
for url in urls:
response = requests.get(url)
print(response.text)
我收到了回复:
C:\Python27\requests\packages\urllib3\connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
【问题讨论】:
-
我收到403 Forbidden 响应,HTML 页面中的文本为
Sucuri WebSite Firewall - CloudProxy - Access Denied。
标签: python python-2.7 https python-requests