I try, to load a page to get a htmldocument, but whatever i do it returns null, because the web.load gives me null.
I tried to actually get solutions that work, and copy paste them into my project, and they do still return null
HtmlAgilityPack.HtmlWeb web = new HtmlWeb();
web.PreRequest += request =>
{
request.CookieContainer = new System.Net.CookieContainer();
return true;
};
MessageBox.Show("Loading html");
var doc = web.Load("url");```
Aucun commentaire:
Enregistrer un commentaire