就是小偷程序有很多种方法的我最常用的就是webclient类了先下载数据,再过滤就可以了

解决方案 »

  1.   

    参考http://community.csdn.net/Expert/topic/5411/5411610.xml?temp=.2505609
      

  2.   

    步骤1 private string GetStringByUrl(string strUrl)这里的URL就是你要请求的页面
        {
            WebRequest wrt = WebRequest.Create(strUrl);
            WebResponse wrse = wrt.GetResponse();
            Stream strM = wrse.GetResponseStream();
            StreamReader SR = new StreamReader(strM, Encoding.GetEncoding("gb2312"));
            string strallstrm = SR.ReadToEnd();
            return strallstrm;
        }步骤2 string strPattern = @"对应的正则表达式";
            MatchCollection Matches = Regex.Matches(allstrm, strPattern, RegexOptions.IgnoreCase | RegexOptions.Compiled);
            foreach (Match NextMatch in Matches)
            {
                取到的结果= NextMatch.Groups[0].Value.ToString().Trim();
            }步骤3:
    把上面取到的结果放到数据库中。