我试图从'http://www.flashscore.com/'提取足球系数表。当您查看页面的源代码时,您可以看到该表格位于id =“fs”的div内。但是,当我搜索该div时,BeautifulSoup不返回任何内容。我写了如下脚本。这里有什么问题?美丽的汤4 HTML解析
Code
import requests
from bs4 import BeautifulSoup
r = requests.get("http://www.flashscore.com/")
soup = BeautifulSoup(r.content, "lxml")
print(soup.find(id="fs"))
'table'来自'post'请求,你不能从'get'请求中提取它。 –
所以你说这是不可能从这个网站提取这些系数? –
我什么时候说过这是不可能的? –