I'm looking to load a .php web page, and search the contents of the page. Just to save me from manually doing a search on the page and scanning the results myself.
I assume the agility pack can do this. Originally, I was going to do the search, download the page, search it, then delete it. But I came across this and saw it could read on-the-fly.
Dim getPage = New HtmlAgilityPack.HtmlWeb
Dim page = getPage.Load("http://www.webpage.com/list.php")
If page.ToString.Contains(keyword) Then
MsgBox("Found it!")
Else
MsgBox("Not found!")
End If
More or less of what I have so far. Doesn't work. When I have "page" do a ToString, it contains HtmlAgilityPack.HtmlDocument.I assume the agility pack can do this. Originally, I was going to do the search, download the page, search it, then delete it. But I came across this and saw it could read on-the-fly.