html - Python用beautifulsoup,find后内容不全
本文介绍了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("div",{"class":"mod-datas"})
但是只显示了标签没有内容。。
实际的源代码是:
中间大量数据怎么提呢?
解决方案
参考http://www.cnblogs.com/goosee...
这篇关于html - Python用beautifulsoup,find后内容不全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文