Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Read website's meta tag?

$
0
0
I'm trying to make it read meta tags from a certain website. Tags are keywords.

This is how it looks (website's source)
<meta name="keywords" content="xxx,yyy, zzz, rrrr etc,...">


This is what I came up so far, but it's not working and I'm a bit clueless.

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
        For Each element As HtmlElement In WebBrowser1.document.All.GetElementsByName("keywords")
            TextBox2.Text = element.GetAttribute("content")
            MsgBox("yeah")
        Next
        MsgBox("nope")
        WebBrowser1.Navigate("127.0.0.1")
    End Sub


Anyone cares to help me out a bit? Thanks!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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