検索

ホームページ  >  に質問  >  本文

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中文网2876日前928

全員に返信(2)返信します

  • 高洛峰

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

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

    返事
    0
  • 怪我咯

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

    x.table と書くだけで取得できます

    返事
    0
  • キャンセル返事