title: Abot web crawler store web pages or just images into folder
body: <p>I am using Google Abot web crawler and would like to know how to store separate web pages or just images into a folder. I checked the forum where it shows the following. But I cannot store into the same file multiple times, does that mean I have to create a different file name each time, or is there a simpler way of storing the web pages. Also, if I only want to store the images, what options should I use? I checked the other Abot stackoverflow posts and found the following crawledpage content as commented. How do I use them to store only images?</p>
  
  <pre><code>//crawledPage.RawContent   //raw html
  //crawledPage.HtmlDocument //lazy loaded html agility pack object (HtmlAgilityPack.HtmlDocument)
  //crawledPage.CSDocument   //lazy loaded cs query object (CsQuery.Cq)
  
  void crawler_ProcessPageCrawlCompleted(object sender, PageCrawlCompletedArgs e)
  {
      CrawledPage crawledPage = e.CrawledPage;
  
      if (crawledPage.WebException != null || crawledPage.HttpWebResponse.StatusCode != HttpStatusCode.OK)
              Console.WriteLine("Crawl of page failed {0}", crawledPage.Uri.AbsoluteUri);
      else
              Console.WriteLine("Crawl of page succeeded {0}", crawledPage.Uri.AbsoluteUri);
  
      if (!string.IsNullOrEmpty(crawledPage.Content.Text))
              File.WriteAllText(SOMEFILEPATH, crawledPage.Content.Text); //or crawledPage.Content.Bytes
  </code></pre>
  
  <p>}</p>
  
  <p>P.S. I got it to store the web page using crawledPage.HtmlDocument.Save(@"C://TESTCRAWL/FILE"+rnd.Next(1, 100).ToString()+".html",System.Text.Encoding.UTF8);
  Is there a way to get just the image?</p>