文章詳情頁
html - Python用beautifulsoup,find后內(nèi)容不全
瀏覽:66日期:2022-08-14 09:41:24
問題描述
代碼:
import urllibfrom urllib import requestfrom bs4 import BeautifulSoup import reurl=’http://quote.eastmoney.com/center/BKList.html#notion_0_0?sortRule=0’html=urllib.request.urlopen(url).read()html=html.decode('GBK')soup=BeautifulSoup(html)x=soup.find_all('p',{'class':'mod-datas'})
但是只顯示了標(biāo)簽沒有內(nèi)容。。
實際的源代碼是:
中間大量數(shù)據(jù)怎么提呢?
問題解答
回答1:參考http://www.cnblogs.com/goosee...
回答2:直接再寫 x.table 就拿到了
排行榜

熱門標(biāo)簽