C# 如何解析html的js中代码获得的url

.Net技术 码拜 6年前 (2014-12-13) 1105次浏览 0个评论
<script>
$(document).ready(function(){
		$('#content').html("<div id=\"gs_res_bdy\"><div id=\"gs_lnv\" role=\"navigation\"><div style=\"height:20px;\"><\/div><ul id=\"gs_lnv_ylo\" class=\"gs_pad\"><li class=\"gs_ind gs_sel\"><a href=\"\/scholar?q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">时间不限<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?as_ylo=2014&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">2014以来<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?as_ylo=2013&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">2013以来<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?as_ylo=2010&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">2010以来<\/a><\/li><li class=\"gs_ind\"><a href=\"#\" onclick=\"return gs_lnv_yloc_clk(this)\">自定义范围...<\/a><\/li><\/ul><form id=\"gs_lnv_yloc\" class=\"gs_pad\" action=\"\/scholar\" style=\"display:none\"><input type=hidden name=q value=\"ccs2014\"><input type=hidden name=hl value=\"zh-CN\"><input type=hidden name=as_sdt value=\"0,5\"><table><tr><td nowrap><input type=\"text\" pattern=\"[0-9]*\" name=\"as_ylo\" class=\"gs_in_txt gs_mini\" size=\"4\" maxlength=\"4\" value=\"\" id=\"gs_as_ylo\">&nbsp;—&nbsp;<input type=\"text\" pattern=\"[0-9]*\" name=\"as_yhi\" class=\"gs_in_txt gs_mini\" size=\"4\" maxlength=\"4\" value=\"\"><\/td><\/tr><tr><td align=\"center\"><button type=\"submit\" class=\"\"><span class=\"gs_wr\"><span class=\"gs_bg\"><\/span><span class=\"gs_lbl\">搜索<\/span><\/span><\/button><\/td><\/tr><\/table><\/form><div class=\"gs_pad\"><div class=\"gs_hr\"><\/div><\/div><ul id=\"gs_lnv_stype\" class=\"gs_pad\"><li class=\"gs_ind gs_sel\"><a href=\"\/scholar?hl=zh-CN&amp;as_sdt=0,5&amp;q=ccs2014\">按相关性排序<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?hl=zh-CN&amp;as_sdt=0,5&amp;q=ccs2014&amp;scisbd=1\">按日期排序<\/a><\/li><\/ul><div class=\"gs_pad\"><div class=\"gs_hr\"><\/div><\/div><ul id=\"gs_lnv_lr\" class=\"gs_pad\"><li class=\"gs_ind gs_sel\"><a href=\"\/scholar?lr=&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">搜索所有网页<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?lr=lang_zh-CN|lang_zh-TW&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">中文网页<\/a><\/li><li class=\"gs_ind\"><a href=\"\/scholar?lr=lang_zh-CN&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\">简体中文网页<\/a><\/li><\/ul><div class=\"gs_pad\"><div class=\"gs_hr\"><\/div><\/div><ul id=\"gs_lnv_misc\" class=\"gs_pad\"><li class=\"gs_inw\"><a href=\"\/scholar?as_sdt=1,5&amp;q=ccs2014&amp;hl=zh-CN\" role=\"checkbox\" aria-checked=\"true\" class=\"gs_in_cb gs_in_cb-gs_sel\"><span class=\"gs_lbl\">包括专利<\/span><span class=\"gs_chk\"><\/span><span class=\"gs_cbx\"><\/span><\/a><\/li><li class=\"gs_inw\"><a href=\"\/scholar?as_vis=1&amp;q=ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\" role=\"checkbox\" aria-checked=\"true\" class=\"gs_in_cb gs_in_cb-gs_sel\"><span class=\"gs_lbl\">包含引用<\/span><span class=\"gs_chk\"><\/span><span class=\"gs_cbx\"><\/span><\/a><\/li><\/ul><div class=\"gs_pad\"><div class=\"gs_hr\"><\/div><div><a href=\"http:\/\/scholar.gfsstp.com\/scholar_alerts?view_op=create_alert_options&amp;hl=zh-CN&amp;alert_query=ccs2014&amp;alert_params=hl%3Dzh-CN%26as_sdt%3D0,5\" class=\"gs_btnM gs_in_ib\"><span class=\"gs_lbl\">创建快讯<\/span><span class=\"gs_ico\"><\/span><\/a><\/div><\/div><\/div><div id=\"gs_ccl\" role=\"main\"><div id=\"advanced_row\" style=\"padding-bottom:8px;\"><\/div><div class=\"clearfix\"><\/div><div style=\"color:#888;\"><span>找到约 139 条结果 <\/span><\/div><p class=\"gs_med\"><span class=\"gs_red\">您是不是要找: <\/span><a href=\"\/scholar?hl=zh-CN&amp;as_sdt=0,5&amp;q=ccs+2014\" class=\"gs_pda\"><em>ccs 2014<\/em><\/a><\/p><div class=\"gs_r\"><div class=\"gs_ri\"><h3 class=\"gs_rt\"><a href=\"http:\/\/agris.fao.org\/agris-search\/search.do?recordID=US201400056562\" onmousedown=\"return scife_clk(this.href,'','res','0')\" target=\"_blank\">Halving global GHG emissions by 2050 without depending on nuclear and <b>CCS <\/b>[<b>2014<\/b>]<\/a><\/h3><div class=\"gs_a\">O Akashi, M Kainuma, T Hanaoka, T Masui - agris.fao.org<\/div><div class=\"gs_rs\">Abstract: In this paper, we assessed the technological feasibility and economic viability of <br>the mid-term (until 2050) GHG emission reduction target required for stabilization of radiative <br>forcing at 2.6  W\/m2. Given the apparent uncertainty surrounding the future deployment <b> ...<\/b><\/div><div class=\"gs_fl\"><a onclick=\"return gs_ocit(event,'-u9j6QdB3X0J','0')\" href=\"#\" class=\"gs_nph\" role=\"button\" aria-controls=\"gs_citc\" aria-haspopup=\"true\">引用<\/a> <span class=\"gs_nph\"><a id=\"gs_svl0\" onclick=\"return gs_sva('-u9j6QdB3X0J','0')\" href=\"#\" title=\"将此文章保存到我的图书馆,以便日后阅读或引用。\"><\/a><span id=\"gs_svo0\" class=\"gs_svm\">正在保存<span id=\"gs_svd0\">...<\/span><\/span><a id=\"gs_svs0\" style=\"display:none\" target=\"_blank\">已<\/a><span id=\"gs_sve0\" class=\"gs_svm\">保存时出错。 <a onclick=\"return gs_sva('-u9j6QdB3X0J','0')\" href=\"#\">要重试吗?<\/a><\/span><\/span> <a href=\"#\" class=\"gs_mor\" role=\"button\" onclick=\"return gs_more(this,1)\"><\/a> <a href=\"\/\/scholar.googleusercontent.com\/scholar?q=cache:-u9j6QdB3X0J:scholar.google.com\/+ccs2014&amp;hl=zh-CN&amp;as_sdt=0,5\" class=\"gs_nvi\" target=\"_blank\">网页快照<\/a> <a href=\"#\" class=\"gs_nvi\" role=\"button\" onclick=\"return gs_more(this,0)\">隐藏<\/a><\/div><\/div><\/div> $('#setting-pane').css("left", $(window).width());
});
.....

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明C# 如何解析html的js中代码获得的url
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!