【发布时间】:2021-01-14 13:24:26
【问题描述】:
第一张图是python引入的网站的html,第二张图是网站上按F12查看的实际html。我不知道为什么这两个结果不同。其他网站正常显示html,不知道为什么只有那个网站不能正常显示。
代码如下:
import requests
from bs4 import BeautifulSoup
result = requests.get('https://www.overbuff.com/heroes')
soup = BeautifulSoup(result.text, "html.parser")
print(soup)
【问题讨论】:
-
因为回复是
" the page you are trying to reach is temporarily unavailable. please try again later "
标签: python html beautifulsoup python-requests python-requests-html