1
Vote

how to get the full html?

description

Hi there,
Thanks for your NCrawler. Looks very good.
 
Can you explain how to obtain the HTML of each crawl?
 
Thanks
Ricardo

comments

Piedone wrote May 4, 2012 at 9:37 PM

Maybe the most simple is to hook into the AfterDownload event and get it from the event args (which is here the "e" variable):
                            using (var sr = new StreamReader(e.Response.GetResponse()))
                            {
                                var response = sr.ReadToEnd();
                            }

wrote Feb 21, 2013 at 10:52 PM