Exemplo n.º 1
0
 /// <summary>
 /// 抓取主题
 /// </summary>
 void FetchPosts()
 {
     this.tlf = new TitleListFetcher();
     this.tlf.FetchPostCompleted += new EventHandler<FetchTitleCompletedEventArgs>(tlf_FetchPostCompleted);
     this.tlf.Cookie = this.cookie;
     this.tlf.Charset = projects[0].Charset;
     this.tlf.Url = projects[0].Url.Replace("[*]", "1");
     this.tlf.FetchListAnsy("init");
 }
Exemplo n.º 2
0
 private void btnTest_Click(object sender, EventArgs e)
 {
     TitleListFetcher tlf = new TitleListFetcher();
     tlf.FetchCompleted += new EventHandler<Natsuhime.Events.ReturnCompletedEventArgs>(TitleList_FetchCompleted);
     tlf.Cookie = new CookieContainer();
     tlf.Charset = "big5";
     tlf.Url = "http://www.welovephoto.com/discuz/forumdisplay.php?fid=1";
     tlf.FetchListAnsy();
 }