search

Home  >  Q&A  >  body text

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中文网2785 days ago864

reply all(2)I'll reply

  • 高洛峰

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

    Reference http://www.cnblogs.com/goosee...

    reply
    0
  • 怪我咯

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

    Just write x.table and you’ll get it

    reply
    0
  • Cancelreply