2
我试图解析该地址内表中解析表:用这个和这个代码的改变尝试表
:
import urllib
import urllib.request
from bs4 import BeautifulSoup
url=('http://www.bricklink.com/catalogPriceGuide.asp?P=3005&colorID=1&viewExclude=N&v=P')
page = urllib.request.urlopen(url)
soup = BeautifulSoup(page.read())
content = soup.find('table')
price=content.findAll('td')
print(price)
我试着几乎所有的组合table
,find
和findAll
我想要的就是让它吐出最左边的桌子,就像
Times Sold: 2958
Total Qty: 130610
Min Price: $0.0136
Avg Price: $0.0690
Qty Avg Price: $0.0659
Max Price: $0.3900
任何人都可以告诉我我做错了什么,并指出我在正确的方向吗?
FYI:“*我们要求您不要使用任何机器人,蜘蛛,其他自动设备或手动过程监控或复制我们的网页或所包含的内容这里没有我们事先明确的书面许可。*“ - http://www.bricklink.com/help.asp?helpID=139&viewType= –