我是Python的初学者,我还在学习阶段。 更具体地说,使用请求和bs4进行刮取。 尝试刮取以下链接时:“http://directorybtr.az.gov/listings/FirmSearchResults.asp?Zip%20Like%20%22850%25%22”
我使用了以下代码:
import requests
from bs4 import BeautifulSoup
url ="http://directorybtr.az.gov/listings/FirmSearchResults.asp?Zip%20Like%20%22850%25%22"
res = requests.get(url)
soup = BeautifulSoup(res.text, 'html.parser')
res.close()
results = soup.find('table')
结果中没有表格,尽管在Chrome中检查源页面时该表格存在。 有什么解决办法或解释吗?你知道吗
谢谢
表格数据在框架内,你需要先去
相关问题 更多 >
编程相关推荐