【发布时间】:2020-08-18 10:39:23
【问题描述】:
抓取表只返回“表”而不是表的内容。
这是我的code:
from urllib.request import urlopen
from bs4 import BeautifulSoup
url = "http://data.eastmoney.com/gdhs/detail/600798.html"
html = urlopen(url)
soup = BeautifulSoup(html, 'lxml')
table = soup.find_all('table')
print(table)
【问题讨论】:
标签: python beautifulsoup urlopen