首页  >  问答  >  正文

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 天前826

全部回复(2)我来回复

  • 高洛峰

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

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

    回复
    0
  • 怪我咯

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

    直接再写 x.table 就拿到了

    回复
    0
  • 取消回复