首頁  >  問答  >  主體

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

代码:

import urllib
from urllib import request
from bs4 import BeautifulSoup 
import re

url='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"})

但是只显示了标签没有内容。。

实际的源代码是:

中间大量数据怎么提呢?

PHP中文网PHP中文网2741 天前823

全部回覆(2)我來回復

  • 高洛峰

    高洛峰2017-04-18 10:32:04

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

    回覆
    0
  • 怪我咯

    怪我咯2017-04-18 10:32:04

    直接再寫 x.table 就拿到了

    回覆
    0
  • 取消回覆