我没有网名 发表于 2009-7-13 10:16:25

百度图片怎么嵌入java了?该怎么采集类??

百度的图片搜索,现在是javascript,那里才是图片的标签哦?求高手赐教·········
http://image.baidu.com/i?ct=503316480&z=0&tn=baiduimagedetail&word=%CB%D8%B2%C4+%B1%B3%BE%B0&in=24752&cl=2&cm=1&sc=0&lm=-1&pn=11&rn=1&di=704012881&ln=2000&fr=


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="X-UA-Compatible" content="IE=7"><title>百度图片搜索_素材 背景的搜索结果   </title><link rel="stylesheet" href="/css/detailimage_right.css?v=1.0.3.css"><script type="text/javascript">function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}var __isIM=0;var __isMA=0;var BD = {};BD.IMG = {};BD.IMG.gconf={realPn:11,listNum:2000,word:'%CB%D8%B2%C4+%B1%B3%BE%B0',tn:'baiduimagedetail',z:"0",isEcom:__isIM||__isMA,isIM:__isIM,isMA:__isMA,ecomMargin:15,containerMargin:25}</script><script src="/js/detailimg_right.js?v=1.0.3.js"></script></head><body><noscript><meta http-equiv="refresh" content="0;url=/i?ct=503316480&z=0&tn=baiduimagedetailnojs&word=%CB%D8%B2%C4+%B1%B3%BE%B0&cl=2&lm=-1&pn=11&di=-1&ln=2000"><style>table,.p{display:none}</style></noscript><script>BD.IMG.detailImgSizeInit();</script><img src="http://image.baidu.com/pv/pv.gif?t=2&ct=503316480&z=0&tn=baiduimagedetail&word=%CB%D8%B2%C4+%B1%B3%BE%B0&cl=2&lm=-1&rn=21&ln=2000" style="display:none"><!--搜索框--><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="htb"><form name=f1 action="/i"><input type=hidden name=tn value=baiduimage><input type=hidden name=ct value=201326592><input type=hidden name=cl value=2><input type=hidden name=lm value="-1"><input type=hidden name=z value="0"><tr valign=middle><td width="100%" valign="top" style="padding-left:8px;width:37px;"><a href="/"><img src="http://img.baidu.com/img/img-jg.gif" border="0" width=137 height=46 alt="到百度图片首页"></a></td><td>&nbsp;&nbsp;&nbsp;</td><td width="100%" valign="top"><table cellSpacing=0 cellPadding=0 border=0 style="margin-top:21px; "><tr><td vAlign=bottom noWrap><div id="sugOut"><span id="sugIn"><input type="text" name="word" size=35 maxlength="120" value="素材 背景" class="i" id="kw" autocomplete="off"></span><div id="sug"></div><div id="sugOff"></div>&nbsp;<input type=submit value=百度一下>&nbsp;&nbsp;&nbsp;</div></td></tr></table></td></tr></form></table><!--设为首页栏 --><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bi"><tr><td nowrap>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" style="color:#000000 ">把百度设为首页</a></td></tr></table><!--图片显示框--><div id="container"><div id="imgContainer"><div id="detailImg"><table id="picWrap"><tr><td id="srcPic" align="center" valign="middle"></td></tr></table><table id="picInfo"><tr><td width="25%">图片尺寸:<span class="fontBar" id="size"></span></td><td width="18%">图片大小:<span class="fontBar" id="fileSize"></span></td><td width="18%" align="left">图片格式:<span class="fontBar" id="fileType"></span></td><tdalign="right"><span class="rate">预览图比例:<span class="fontBar" id="rate"></span></span></td><td style="width:70px" align="left"><a href="javascript:void(0)" class="zoomsrc" id="zoomSrc">查看原图</a></td></tr></table></div><div id="album"><div id="slidePre"></div><div id="smallImgs"><div id="imgList"></div></div><div id="slideNext"></div></div><div id="imgFrom"></div></div><div id="ecomContainer"><div id="imContainer"></div></div></div><div style="clear:both"></div><!-- 页尾声明--><br><br><table width="100%" border=0 cellpadding="0" cellspacing="0"><tr><td style="color:#666666;line-height:18px;font-size:12px" align=center>此内容系百度自动搜索的结果,可能受著作权保护,百度与内容的出处无关,请在获得权利人(如有)合法授权后使用。如有疑问请参考<a target=_blank href=http://www.baidu.com/search/appcopyright.html style="color:#666666;">权利声明</a></td></tr></table><div style="text-align:center;height:20px;padding-top:2px;font-size:12px;color:#77C;font-family:Arial">&copy;2009 Baidu</div><script>BD.IMG.detaiImg.init(BD.IMG.albumConf);</script><script src="js/sug.js?v=1.5.0.js"></script><img src="http://c.baidu.com/c.gif?t=3&p=2" style="display:none;"/></body></html>

孤魂 发表于 2009-7-13 11:57:48

http://image.baidu.com/i?tn=baiduimagejson&ct=201326592&cl=2&lm=-1&word=%CB%D8%B2%C4+%B1%B3%BE%B0&z=0&rn=30&pn=0

json数据格式,抓包可以得到
抓包教程:http://lv.wanzhou.in/detail/5.html

我没有网名 发表于 2009-7-13 17:42:39

多谢孤魂赐教,又学一招,就是看不大懂,再好好学下HTML······

amaze80 发表于 2009-12-27 17:49:34

看看~{:4_195:} 刚才采图片也是采不到~
页: [1]
查看完整版本: 百度图片怎么嵌入java了?该怎么采集类??