【发布时间】:2018-02-11 19:34:18
【问题描述】:
我正在尝试使用此代码从该网页“http://www.fibalivestats.com/u/ACBS/333409/pbp.html”获取内容:
r = requests.get("http://www.fibalivestats.com/u/ACBS/333409/pbp.html")
if r.status_code != 200:
print("Error!!!")
html = r.content
soup = BeautifulSoup(html, "html.parser")
print(soup)
我得到了页面的模板,但没有得到与每个标签关联的数据。
如何获取数据?我是 Python 新手。
【问题讨论】:
标签: python-3.x