Trojan55 Posted October 6, 2013 Share Posted October 6, 2013 Hi All, I'm trying to get the text of google button but i can't here is the source : $src = InetRead("https://www.google.dz/") $fix = BinaryToString($src) $chg = StringRegExp($fix,'<span id="gbqfsa">Recherche (.*?)</span>',3) MsgBox(0,"",$chg) What's the problem? Link to comment Share on other sites More sharing options...
Solution mrflibblehat Posted October 6, 2013 Solution Share Posted October 6, 2013 (edited) $chg will return an array. I also notice that $fix does not have any such source code in. Maybe this is served up client side in the browser by javascript. not so sure how that works. Best I can suggest is $src = BinaryToString(InetRead("https://www.google.dz/")) $chg = StringRegExp($src,'"srch"\:"(.*?)"', 3) MsgBox(0,"",$chg[0]) Edited October 6, 2013 by mrflibblehat Trojan55 1 [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
Trojan55 Posted October 6, 2013 Author Share Posted October 6, 2013 (edited) Wow Thanks!!! That's what i was searching about... But Why did you do "srch":? Edited October 6, 2013 by Trojan55 Link to comment Share on other sites More sharing options...
mrflibblehat Posted October 7, 2013 Share Posted October 7, 2013 Hi Trojan55, If you look at $src it doesnt show the full google source, but I found a part of the source code which shows the button name and that was. "srch" [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
Trojan55 Posted October 8, 2013 Author Share Posted October 8, 2013 Hi Trojan55, If you look at $src it doesnt show the full google source, but I found a part of the source code which shows the button name and that was. "srch" Oh Thanks yea Link to comment Share on other sites More sharing options...
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