国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

html - Python用beautifulsoup,find后內容不全

瀏覽:115日期: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'})

但是只顯示了標簽沒有內容。。

html - Python用beautifulsoup,find后內容不全

實際的源代碼是:

html - Python用beautifulsoup,find后內容不全

中間大量數據怎么提呢?

問題解答

回答1:

參考http://www.cnblogs.com/goosee...

回答2:

直接再寫 x.table 就拿到了

標簽: Python 編程
主站蜘蛛池模板: 科技| 崇礼县| 安陆市| 河北省| 那曲县| 西充县| 漯河市| 红桥区| 广宁县| 日土县| 上饶市| 沭阳县| 吴川市| 茂名市| 盖州市| 平山县| 彭山县| 宽城| 贡觉县| 葫芦岛市| 方正县| 沙坪坝区| 建水县| 密云县| 万安县| 永登县| 凯里市| 突泉县| 吉木乃县| 永泰县| 新源县| 阿合奇县| 西贡区| 深水埗区| 浪卡子县| 邹城市| 乌拉特后旗| 图木舒克市| 晋宁县| 大关县| 永善县|