Example #1
0
        public HttpScraper(string sourceUri, string xpath)
        {
            web           = new FormProcessorWeb(true);
            web.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)";
            processor     = new FormProcessor(web);

            form = processor.GetForm(sourceUri, xpath, FormQueryModeEnum.Nested);
        }
Example #2
0
 public void SetForm(HtmlDocument doc, string url, string xpath)
 {
     form = processor.GetForm(doc, url, xpath, FormQueryModeEnum.Nested);
 }