我试图在http://apps2.eere.energy.gov/wind/windexchange/economics_tools.asp上刮桌子
该表默认显示 5 个条目。我使用dryscrape和BeautifulSoup如下:
import dryscrape
from bs4 import BeautifulSoup
myurl = 'http://apps2.eere.energy.gov/wind/windexchange/economics_tools.asp'
session = dryscrape.Session()
session.visit(myurl)
response = session.body()
soup = BeautifulSoup(response,'lxml')
table = soup.find_all("td")
但这仅返回该表的默认 5 个条目。如何获取此表中的所有行?
非常感谢!