我正试图从this webpage的网页上抓取表格。然而,到目前为止,我的脚本还没有生成一个表格。
import requests
import pandas as pd
from bs4 import BeautifulSoup
url = "https://www.nba.com/stats/draft/combine-anthro?SeasonYear=2021-22"
response = requests.get(url)
response.status_code
response.content
response = requests.get(url).content
soup = BeautifulSoup(response, "html.parser")
soup.find_all("table")
字符串
有没有人对我如何找回它的建议?提前感谢.
1条答案
按热度按时间ldioqlga1#
您可以尝试捕获外部URL返回的JSON:
字符串
输出量:
型