YasserKhalil
Well-Known Member
Hello everyone
I am trying to get the title of a web page and this is working for some links
But as for youtube I think it require a login details .. but I don't know how to do that
so I got access denied error
Thanks advanced for help
I am trying to get the title of a web page and this is working for some links
Code:
Sub Test()
Dim xmlPage As New MSXML2.XMLHTTP60
xmlPage.Open "Get", "https://youtu.be/znVmbjFEXds", False
xmlPage.send
GetPageTitle xmlPage.responseText
End Sub
Function GetPageTitle(html As String)
GetPageTitle = Mid(html, InStr(html, "<title>") + Len("<title>"), InStr(html, "</title>") - InStr(html, "<title>") - Len("</title>") + 1)
Debug.Print GetPageTitle
End Function
But as for youtube I think it require a login details .. but I don't know how to do that
so I got access denied error
Thanks advanced for help