資源簡介
網(wǎng)上新聞,招聘新聞,想采集什么就采什么,大部分都能采,我公司得信息就是用這個(gè)東西采集得,雖然小,但實(shí)用,不用再寫許多程序了,呵呵,以后再完善一下,

代碼片段和文件信息
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.Net;
using?System.IO;
using?System.Text;
using?System.Collections;
using?System.Text.Regularexpressions;
using?System.Collections.Generic;
using?System.Data.SqlClient;
public?partial?class?_Default?:?System.Web.UI.Page
{
????HtmlBin?htmlbin?=?new?HtmlBin();
????CgTag?cgTag?=?new?CgTag();
????SqlHelp?helps?=?new?SqlHelp();
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????Response.Write(“著作人:程功QQ:719126100歡迎大家和我交流“);
????????????loadBin();
????????}
????}
????public?string?tr?=?““;
????private?void?loadBin()
????{
????????string?filePath?=?“file/“?+?HttpUtility.UrlDecode(Request.QueryString[“fileName“]);
????????if?(File.Exists(Server.MapPath(filePath)))
????????{
????????????HtmlTag?htmTag?=?htmlbin.readBin(Server.MapPath(filePath));
????????????this.Txt_code.Text?=?htmTag.Code;
????????????this.Txt_code2.Text?=?htmTag.Code2;
????????????this.Txt_endTag.Text?=?htmTag.EndTag;
????????????this.Txt_name.Text?=?Request.QueryString[“fileName“];
????????????this.Txt_startTag.Text?=?htmTag.StartTag;
????????????this.Txt_wz.Text?=?htmTag.Url;
????????????this.Txt_sql.Value?=?htmTag.Sql;
????????????this.Txt_connStr.Value?=?htmTag.ConnStr;
????????????this.Txt_erji.Text?=?htmTag.EjWz;
????????????this.Txt_wzml.Text?=?htmTag.WzMl;
????????????for?(int?i?=?0;?i?????????????{
????????????????Htmlparam?param?=?(Htmlparam)htmTag.Lists[i];
????????????????tr?+=?““;
????????????????tr?+=?string.Format(“ “?param.Name);
????????????????tr?+=?string.Format(“ “?param.StartTag);
????????????????tr?+=?string.Format(“ “?param.EndTag);
????????????????tr?+=?“click=‘del_click(this.parentNode.parentNode.rowIndex)‘>刪除 “;
????????????????tr?+=?“click=‘btnyl2(this.parentNode.parentNode.rowIndex)‘>預(yù)覽 “;
????????????????tr?+=?“ “;
????????????}
????????}
????}
????private?void?saveBin()
????{
????????string?filePath?=?“file/“?+?HttpUtility.UrlDecode(Request.QueryString[“fileName“]);
????????HtmlTag?htmTag?=?new?HtmlTag();
????????htmTag.Code?=?this.Txt_code.Text;
????????htmTag.Code2?=?this.Txt_code2.Text;
????????htmTag.StartTag?=?this.Txt_startTag.Text;
????????htmTag.EndTag?=?this.Txt_endTag.Text;
????????htmTag.Sql?=?this.Txt_sql.Value;
????????htmTag.Url?=?this.Txt_wz.Text;
????????htmTag.ConnStr?=?this.Txt_connStr.Value;
????????htmTag.WzMl?=?this.Txt_wzml.Text;
????????htmTag.EjWz?=?this.Txt_erji.Text;
????????string
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1729??2010-09-30?17:41??采集軟件\App_Code\CgTag.cs
?????文件???????1211??2010-09-18?15:07??采集軟件\App_Code\HtmlBin.cs
?????文件???????1274??2010-09-18?16:10??采集軟件\App_Code\Htmlparam.cs
?????文件???????2347??2010-09-18?17:41??采集軟件\App_Code\SqlHelp.cs
?????文件???????3080??2010-10-11?23:20??采集軟件\App_Code\HtmlTag.cs
?????文件???????1299??2010-10-11?23:20??采集軟件\file\2多網(wǎng)打折卡
?????文件???????1337??2010-09-28?10:14??采集軟件\file\3多網(wǎng)打折卡
?????文件???????1402??2010-09-30?16:34??采集軟件\file\58房屋房屋整組
?????文件????????838??2010-09-30?16:56??采集軟件\file\c_寵物狗
?????文件????????623??2010-09-30?17:19??采集軟件\file\c_招聘
?????文件???????1562??2010-10-09?09:42??采集軟件\file\c_火車票轉(zhuǎn)讓
?????文件???????1603??2010-09-30?15:59??采集軟件\file\w_房屋合租
?????文件????????874??2010-10-11?23:21??采集軟件\file\促銷招聘
?????文件???????1345??2010-10-08?10:04??采集軟件\file\復(fù)件?(2)?c_火車票轉(zhuǎn)讓
?????文件????????869??2010-10-08?10:28??采集軟件\file\復(fù)件?c_火車票轉(zhuǎn)讓
?????文件???????1346??2010-10-11?23:24??采集軟件\file\多網(wǎng)打折卡
?????文件??????99005??2010-08-05?17:25??采集軟件\js\jquery.js
????..A..H.??????7168??2010-10-11?23:25??采集軟件\cg2.suo
?????文件????????504??2010-10-11?22:38??采集軟件\Default2.aspx
?????文件????????469??2010-09-18?16:50??采集軟件\TagManage.aspx
?????文件???????1546??2010-09-17?18:15??采集軟件\Web.Config
?????文件???????1527??2010-10-11?23:28??采集軟件\采集軟件.sln
????..A..H.??????8704??2010-10-21?22:43??采集軟件\采集軟件.suo
?????文件???????9264??2010-10-21?22:32??采集軟件\Default.aspx.cs
?????文件???????1501??2010-10-21?22:33??采集軟件\Default2.aspx.cs
?????文件???????1028??2010-10-21?22:35??采集軟件\TagManage.aspx.cs
?????文件???????4447??2010-10-21?22:41??采集軟件\Default.aspx
?????目錄??????????0??2010-09-30?17:41??采集軟件\App_Code
?????目錄??????????0??2010-09-17?17:48??采集軟件\App_Data
?????目錄??????????0??2010-09-18?14:42??采集軟件\bin
............此處省略7個(gè)文件信息
評(píng)論
共有 條評(píng)論