Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Searching contents of a php page?

$
0
0
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.
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.

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>