Example #1
0
 static void Main(string[] args)
 {
     if (args.Length < 3)
     {
         Console.WriteLine(
             "Usage: Recipe13_2 [Path to spider.conf] [Path to download to] [URL to download]");
     }
     else
     {
         try
         {
             DownloadSite download = new DownloadSite();
             download.Download(args[0], new Uri(args[2]), args[1]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.StackTrace);
         }
     }
 }
        static void Main(string[] args)
        {
            if (args.Length < 3)
            {
                Console.WriteLine(
                "Usage: Recipe13_2 [Path to spider.conf] [Path to download to] [URL to download]");
            }
            else
            {
                try
                {
                    DownloadSite download = new DownloadSite();
                    download.Download(args[0], new Uri(args[2]), args[1]);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.StackTrace);

                }


            }

        }