我该用idhttp还是webbrower(100)

S

sxper

Unregistered / Unconfirmed
GUEST, unregistred user!
1.该url 要登陆 http://game.kuwo.cn/g/st/JumpSanguo?relog=y2.http://s1.sanguo.koowo.com/index.php?act=map.detail&uitx=603&uity=574 然后我要跳转到3 上url在登陆后会返回 <?xml version="1.0" encoding="utf-8" ?> - <game>- <script>- <![CDATA[ ;if(typeof(game_version) == "undefined" || game_version != "1.733"){parent.location.reload();} ]]> </script> <village name="汉存储vxcv" x="592" y="574" vip="" ismain="1" statename="幽州" /> <time>2009-05-03 12:25:28</time> <actions quid="41042314" quname="sxper@kw" act="map.detail" uitx="603" uity="574" villageid="38414" /> - <resos> <reso id="crop" now="67031.404722222" max="97600" speed="11733.75" increase="401.75" /> <reso id="lumber" now="62477.55" max="160000" speed="4455" increase="4455" /> <reso id="clay" now="4330.45" max="160000" speed="4545" increase="4545" /> <reso id="iron" now="13167.063333333" max="160000" speed="4953" increase="4953" /> <reso id="population" now="11332" max="11733.75" speed="0" increase="0" /> </resos>- <villagelist> <village id="76613" name="杭州" /> <village id="38414" name="汉存储vxcv" /> <village id="90716" name="湖州" /> <village id="81105" name="绍兴" /> <village id="85398" name="临安" /> <village id="87167" name="宁波" /> <village id="89112" name="金华" /> <village id="92630" name="丽水" /> <village id="95266" name="台州" /> <village id="94453" name="温州" /> </villagelist> <reports reportnew="47" msgnew="0" /> <studyqueue bqs="0" bqsqid="0" ytj="0" ytjqid="0" hby="0" hbyqid="0" jc="0" jcqid="0" xg="0" xgqid="0" /> - <tasks zjzbid="6"> <task type="8" queueid="15784264" intro="农田  (Lv 15)" begintime="2009-05-02 08:31:27" endtime="2009-05-03 14:28:07" queuetype="0" queuestarttime="2009-05-03 12:15:28" buildinglesscoin="6" /> </tasks>- <soldiers zjzbid="6"> <soldier vid="38414" tribe="吴" type="1" count="2" /> <soldier vid="38414" tribe="吴" type="2" count="85" /> <soldier vid="38414" tribe="吴" type="3" count="7" /> <soldier vid="38414" tribe="吴" type="4" count="3339" /> <soldier vid="38414" tribe="吴" type="5" count="40" /> <soldier vid="38414" tribe="吴" type="9" count="57" /> <soldier vid="38414" tribe="吴" type="10" count="1" /> <soldier vid="38414" tribe="吴" type="100" count="4" /> </soldiers>- <htmls>- <html id="vipz">- <![CDATA[ <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-valuebook-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-valuebook.gif/'> <font class=/'color_blue weight_strong/'>丹书铁卷:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=218&amp;goods_subid=0');"/> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-vip-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-vip.gif/'> <font class=/'color_blue weight_strong/'>金钻用户:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:点击图标查看金钻用户详细说明。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=116&amp;goods_subid=1');"/> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-resource-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static ]]> </html>- <html id="vipz">- <![CDATA[ .sg.kunlun.com/1.7.4/images/index/buff-resource.gif/'> <font class=/'color_blue weight_strong/'>内政加成:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:使用道具“<font class=/'color_darkred weight_strong/'>天子令</font>”或“<font class=/'color_darkred weight_strong/'>龙纹宝鼎</font>”<br />可获得产量加成效果,点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=114&amp;goods_subid=0');"/> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-atkdef-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-atkdef.gif/'> <font class=/'color_blue weight_strong/'>军事加成:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:使用道具“<font class=/'color_darkred weight_strong/'>天子令</font>”可获得攻方加成效果,<br />点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=116&amp;goods_subid=1');" /> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-a ]]> </html>- <html id="vipz">- <![CDATA[ utomove-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-automove.gif/'> <font class=/'color_blue weight_strong/'>明修暗渡:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=113&amp;goods_subid=0');" /> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-hidestore-1.gif" onmouseover="showBuff(this, '<div><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-hidestore.gif/'> <font class=/'color_blue weight_strong/'>青铜铲:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:使用道具“<font class=/'color_darkred weight_strong/'>青铜铲</font>”后,暗仓的容量上限<br />提升至原来的5倍,点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=116&amp;goods_subid=5');" /> <img src="http://static.sg.kunlun.com/1.7.4/images/index/buff-assurance-1.gif" onmouseover="showBuff(this, '<d ]]> </html>- <html id="vipz">- <![CDATA[ iv><img src=/'http://static.sg.kunlun.com/1.7.4/images/index/buff-assurance.gif/'> <font class=/'color_blue weight_strong/'>高级保险:</font><font class=/'color_red weight_strong/'>未激活</font></div><div>提示:点击图标查看详情。</div>')" onclick="javascript:MM_iframePost('user.assurance');"/> ]]> </html>- <html id="mygift">- <![CDATA[ ]]> </html>- <html id="up_product">- <![CDATA[ <img src="http://static.sg.kunlun.com/1.7.4/images/index/speedup.gif" onclick="javascript:MM_iframePost('store.featuregoods&amp;goods_id=114');" /> ]]> </html>- <html id="floatblockright">- <![CDATA[ <!-- -*- coding: utf-8; mode: html; -*- --> <div class="righttext2"> <h2 class="h2grey"> <span style="float:right; padding-top:5px;"> <a href="javascript:void(0);" onclick="MM_changeProp('floatblockright','','style.display','none','DIV')" ><img src="http://static.sg.kunlun.com/1.7.4/images/autumn/button-close.gif" alt="close" /></a> </span> <span style="float:left; padding:3px; padding-top:7px;"> 空地 (603|574) </span> </h2> <img src="http://static.sg.kunlun.com/1.7.4/images/maps/s4446.gif" align="center" style="width:321px; height:163px;"> <span> </span><p id="mapfunction" ><span class="right" style="width:100px;"> <input type="button" class="send-btn5 right" value="建立城镇" onclick="MM_iframePost('build.worksite&amp;do=assart&amp;bid=8&amp;tp=20_2&amp;x=603&amp;y=574');">

<input type="button" class="send-btn5 right" value="中心地图" onclick="MM_iframePost('map.status&amp;uitx=603&amp;uity=574&amp;keep=right');">

<input typ ]]> </html>- <html id="floatblockright">- <![CDATA[ e="button" class="send-btn5 right" value="记录坐标" onclick="MM_promptDialog('map.addbookmark&amp;x=603&amp;y=574','请输入坐标(603,574)的描述<font color=/'red/'>(限15个汉字)</font>','添加坐标书签');">

</span><i style="font-size:1px"> </i><br /> 林 场:4<br /> 采石场:4<br /> 铁 矿:4<br /> 农 田:6<br />
<BR /><strong>战斗记录:</strong><br /><span class="grey1">没有相关战斗记录</span>
</div> ]]> </html> </htmls> </game>- <!-- 0.06345796585083 --> 4 然后我要分析该<![CDATA[ e="button" class="send-btn5 right" value="记录坐标" onclick="MM_promptDialog('map.addbookmark&amp;x=603&amp;y=574','请输入坐标(603,574)的描述<font color=/'red/'>(限15个汉字)</font>','添加坐标书签');">

</span><i style="font-size:1px"> </i><br /> 林 场:4<br /> 采石场:4<br /> 铁 矿:4<br /> 农 田:6<br />
<BR /><strong>战斗记录:</strong><br /><span class="grey1">没有相关战斗记录</span>
</div> ]]> 5 其中的农 田:6<br /> 就是我要的..我要找到所有的农田=9 或者15的 地址
 
http://s1.sanguo.koowo.com/index.php?act=map.detail&uitx=603&uity=574 此处 603 574 为坐标
 
意思表达出来就可以了 不需要这么复杂。 还是直接说要达到那种效果吧
 
我赞同楼上说法!
 
两个都不要用最好.
 
webbrowser 太慢了idhttp应当可以解决你的问题也可以用 IXMLHTTPRequest (我用的多一点)
 
IEParserEmbeddedWB:webbrowser的第三方控件提供了一个IE解析单元IEParser.pasEmbeddedWB_D2009_Version_14.66.5.rar http://www.bsalsa.com/DP/download.php?file=4
 
顶部