>  Q&A  >  본문

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일 전825

모든 응답(2)나는 대답할 것이다

  • 高洛峰

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

    참고 http://www.cnblogs.com/goosee...

    회신하다
    0
  • 怪我咯

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

    x.table만 작성하면 얻을 수 있습니다

    회신하다
    0
  • 취소회신하다