Cookies HTML Agility Pack?

c# cookies html-agility-pack

Question

This is a general question regarding web scraping.

When I web scrape certain sites. I receive a messages like this:

Your browser must have browser cookies turned on

I've been searching around for a solution and i'm guessing its something to do with storing cookies? I'm new to this so any guidance would be appreciated.

Accepted Answer

var getHtmlWeb = new HtmlAgilityPack.HtmlWeb();
getHtmlWeb.UseCookies = true;

just add getHtmlWeb.UseCookies = true;



Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why