91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.62MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-16
  • 語言: C#
  • 標簽: c#??采集??源碼??

資源簡介

c# 采集源碼, 分段采集 全部連接 c#采集類

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Configuration;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
using?System.Drawing;
using?MSxml2;
using?System.Text.Regularexpressions;



public?partial?class?_Default?:?System.Web.UI.Page?
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{

???????????????GetHrefsu?o?=?new?GetHrefsu();
???????????????string?Url?=?@“http://www.cfagri.gov.cn/GOV/News/CF/default_2.shtml“;
????????????????string?HtmlCode?=?o.GetRemoteHtmlCode(Url);
??????????????????string?s?=?o.GetHref(HtmlCode);
?????????????string[]?tmp=s.Split(‘|‘);???
???????????????for(int?i=0;i???????????????{
???????????????????if?(tmp[i].IndexOf(“http://“)?>?-1)
???????????????????{
???????????????????????Response.Write(tmp[i].Replace(“\““““).Trim()+“
“);
???????????????????}
???????????????????else?
???????????????????{
???????????????????????Response.Write(“http://www.cfagri.gov.cn“?+?tmp[i].Replace(“\““?““).Trim()?+?“
“);?
???????????????????}
???????????????}
?
??????????????????o.Dispose();

??????????????????//GetHrefsu?k?=?new?GetHrefsu();
??????????????????//?Url?=?@“http://www.cfagri.gov.cn/Gov/news/GN/2010/3/48450.shtml“;
??????????????????//?HtmlCode?=?k.GetRemoteHtmlCode(Url);
??????????????????//?s?=?k.RegReplace(HtmlCode?“tle>“?“tle>“);
??????????????????//?Response.Write(s?+?“



“);
??????????????????//k.Dispose();


??????????????????Url?=?@“http://www.cfagri.gov.cn/gov/news/cf/2010/3/48943.shtml“;
?????????????????HtmlCode?=?o.GetRemoteHtmlCode(Url);
??????????????????//??s?=?o.ReplaceEnter(HtmlCode);
??????????????????//??string?Reg?=?“tle>(.+)tle>“;



??????????????????string?strSource?=?HtmlCode;
??????????????????int?iBegin?=?strSource.IndexOf(““);
??????????????????int?iEnd?=?strSource.IndexOf(““iBegin);
????????????????????strSource?=?strSource.Substring(iBegin?iEnd?-?iBegin);

????????????????????Response.Write(strSource.Replace(““?““));
??????????????????
?????????????????//string?GetValue?=?o.GetRegValue(Reg?HtmlCode);
?????????????????//??Response.Write(GetValue);
?????????????????//o.Dispose();

//????????Function?getStrBetween(StrStartStrEndStr)??

//?

//EndStrPos?=?Instr(StrEndStr)???

//Length?=?EndStrPos??-?StartStrPos????

//Res=?Mid(StrStartStrPosLength)???

//getStrBetween?=?Res?

//End?Function

//Str?=?“如何獲取兩個字符串之間的字符串?“?

//StartStr?=“獲取“?

//EndStr?=?“字符串“?

//Res?=?getStrBetween(StrStartStrEndStr)

//Msgbox?Res



????}

????private?object?Instr(string?HtmlCode?string?p)
????{
????????throw?new?NotImplementedException();
????}?
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????16253??2010-03-27?16:26??caiji\App_Code\GetHrefsu.cs

?????文件??????86016??2003-10-28?20:00??caiji\Bin\Interop.MSxml2.dll

?????文件????????444??2008-01-11?20:32??caiji\Default.aspx

?????文件???????2919??2010-03-29?09:39??caiji\Default.aspx.cs

?????文件?????688667??2001-09-05?20:00??caiji\msxml2\home\msxml2.dll

?????文件????????169??2007-01-01?11:13??caiji\msxml2\readme.txt

?????文件?????699392??2003-08-01?04:00??caiji\msxml2\win2003\msxml2.dll

?????文件?????699392??2003-10-28?20:00??caiji\msxml2\xp\msxml2.dll

?????文件???????2794??2006-11-29?14:57??caiji\msxml2\說明.htm

?????文件?????837054??2010-03-27?15:47??caiji\msxml2.rar

?????文件???????8068??2010-03-27?16:02??caiji\web.config

?????目錄??????????0??2007-01-03?10:31??caiji\msxml2\home

?????目錄??????????0??2007-01-03?10:31??caiji\msxml2\win2003

?????目錄??????????0??2007-01-03?10:31??caiji\msxml2\xp

?????目錄??????????0??2010-03-27?16:26??caiji\App_Code

?????目錄??????????0??2010-03-27?15:30??caiji\App_Data

?????目錄??????????0??2010-03-27?15:51??caiji\Bin

?????目錄??????????0??2010-03-27?15:49??caiji\msxml2

?????目錄??????????0??2010-03-31?11:53??caiji

?????文件?????????12??2010-03-31?11:54??caiji\新建?文本文檔.txt

-----------?---------??----------?-----??----

??????????????3041180????????????????????20


評論

共有 條評論