Object reference not set to an instance of an object.
root is an HtmlNode but when I try to access anything using SelectSingleNode or SelectNodes it will raise this error when trying to access any methods of them.
5 Replies
Does LoadHtml actually take a URL?
I would assume it takes an HTML string.
it does take an html string...
im suprised it did not log anything in console about it being an url
ty @jcotton42
Console logging on errors isn’t a thing .net libraries do.
They would throw exceptions.
im thinking in a python way
I get what you mean
Quality Python libs don’t do that either.