//static Regex torlinkRegex = new Regex(@"http://www1\.newstorrentsspace\.info/freeone/file\.php/.{7}\.html"); static void Main(string[] args) { List<string> lsgurl = new List<string>(); if (Directory.Exists("spider")) Directory.CreateDirectory("spider"); Directory.GetFiles("spider","*.cs").ToList().ForEach(s => { dynamic script = new AsmHelper(CSScript.Load(s)).CreateObject("SpiderHost.script.spider"); lsgurl.AddRange(script.getUrls()); }); //Parallel.For(1, 2, (i => //{ // lsgurl.Add("http://opp.hegc1024.com/pw/thread.php?fid=5&page=" + i); //})); //Parallel.For(1,2, ( i=>{ // lsgurl.Add("http://opp.hegc1024.com/pw/thread.php?fid=22&page=" + i); //})); dowload_av(lsgurl.ToArray()); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Done!"); Console.ForegroundColor = ConsoleColor.White; Console.ReadLine(); }