0
任何人都可以给我一段BeautifulSoup代码来提取表中找到的一些项目here?使用BeautifulSoup提取表格信息(bs4)
这里是我的尝试:
from bs4 import BeautifulSoup
from urllib2 import urlopen
url = "http://biology.burke.washington.edu/conus/accounts/../recordview/record.php?ID=1ll&tabs=21100111&frms=1&res=&pglimit=A"
html = urlopen(url).read()
soup = BeautifulSoup(html,"lxml")
tables = soup.findAll("table")
然而,这是失败的 - 表原来是空的。
对不起,我是BeautifulSoup noob。
谢谢!
好的谢谢!我没有意识到这一点。您是否看到顶部的壳形态测量框中的信息?我将如何提取该框内的信息? – littleO
嗯,我会考虑硒。有没有简单的方法使用BeautifulSoup来做到这一点? – littleO
@littleO,我添加了一个使用硒+ bs4的代码。 – falsetru