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("div",{"class":"mod-datas"})

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

clipboard.png

实际的源代码是:

clipboard.png

中间大量数据怎么提呢?

阅读 7.2k
2 个回答
新手上路,请多包涵

直接再写 x.table 就拿到了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题