Though I have added a reference to the
Additional information: Object reference not set to an instance of an object.
Dim doc As HtmlDocument = New HtmlDocument()
For Each row As HtmlNode In doc.DocumentNode.SelectNodes("//a[@class='base-link']")
The exception occurs because there are no nodes selected with your XPath query.
You can guard against it with something like:
Option Infer On ' ... ' Dim myLinks = doc.DocumentNode.SelectNodes("//a[@class='base-link']") If myLinks IsNot Nothing Then For Each row In myLinks Console.WriteLine(row.Name) Next End If