【发布时间】:2017-09-06 14:50:09
【问题描述】:
我正在尝试从 https://angel.co/bloomfire 网站上抓取数据
import requests
from bs4 import BeautifulSoup
res = requests.get('https://angel.co/pen-io')
soup = BeautifulSoup(res.content, 'html.parser')
print(soup.prettify())
这将打印标题标签为“找不到页面 - 404 - AngelList”。 在 webbrowser 中,网站运行良好,但其源代码与我的 python 脚本的输出不同。 我也将 selenium 与 phantomjs 一起使用,但它显示了同样的东西
【问题讨论】:
标签: python python-3.x web-scraping beautifulsoup python-requests