示例#1
0
        static void Main(string[] args)
        {
            using (var biz = new ProxyListBiz()) {
                GetListProxy();
            }

        }
示例#2
0
        public static void GetListProxy()
        {
            using (var biz = new ProxyListBiz()) {
                biz.URLRequest = ConfigurationManager.AppSettings["URLProxy"];
                biz.HTMLPartenReg = new Regex(@"<tr><td>\w+.*");
                biz.HTMLPartenSubReg = new Regex(@"<tr><td>|</td><td>|</td></tr>");

                Base.Execute(biz.GetListProxy());
            }
        }
示例#3
0
        private static List<ProxyListDto> getListProxy()
        {

            using (var biz = new ProxyListBiz()) {
                biz.URLRequest = ConfigurationManager.AppSettings["URLProxy"];
                biz.HTMLPartenReg = new Regex(@"<tr><td>\w+.*");
                biz.HTMLPartenSubReg = new Regex(@"<tr><td>|</td><td>|</td></tr>");

                return biz.GetListProxy();
            }
        }