Jump to content
Sign in to follow this  
netegg

how to

Recommended Posts

netegg

how to get the html title about a address?

Share this post


Link to post
Share on other sites
Nahuel

You mean... you have the html source and you want to know the title of the document? (the one that shows in your browser's titlebar?) Well they are between the tags

<title></title>

So it's quite easy:

#include <Inet.au3>

$URL="www.google.com"

$Source=_INetGetSource($URL)

$DocTitle=StringRegExp($Source,"(?i)\<title\>(.*?)\</title\>",1)

MsgBox(0,"","The title of " & $URL & " is: " & $DocTitle[0])

if that's not what you want, then explain more :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×