Kyme Posted February 18, 2009 Posted February 18, 2009 hi all i try to make this one and i can made it:( for example on youtube, when you watch one movie in source of page(in firefox) exist this var embedUrl = 'xxxxxxxxxxxxxxxxxx' how i can made some script to msgbox me what contain embedUrl? some func to find variable?...i try IEBodyReadHTML and IEDocReadHTML but nothing:| it's there some trick to find this? thank you Regard,kyme
exodius Posted February 18, 2009 Posted February 18, 2009 (edited) hi all i try to make this one and i can made it:( for example on youtube, when you watch one movie in source of page(in firefox) exist this var embedUrl = 'xxxxxxxxxxxxxxxxxx' how i can made some script to msgbox me what contain embedUrl? some func to find variable?...i try IEBodyReadHTML and IEDocReadHTML but nothing:| it's there some trick to find this? thank you Regard,kyme InetGet ("http://www.youtube.com/watch?v=mY5qJHZCz2I&feature=rec-HM-r2", "a.html") $file = FileRead ("a.html") FileDelete ("a.html") If StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 0) Then $RegExp = StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 1) MsgBox (0, "", $RegExp[0]) EndIf To see it without the forum changing parts into smileys: InetGet ("http://www.youtube.com/watch?v=mY5qJHZCz2I&feature=rec-HM-r2", "a.html") $file = FileRead ("a.html") FileDelete ("a.html") If StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 0) Then $RegExp = StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 1) MsgBox (0, "", $RegExp[0]) EndIf Edited February 18, 2009 by exodius
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now