taylansan Posted August 29, 2014 Share Posted August 29, 2014 Hello Autoit Forum, The following is the to HSBC Turkey branch: http://www.hsbc.com.tr/tr/yatirim/doviz_altin/ When i enter this site, the page displays the USD buying (2.1594) / selling (2.1666) rates. I am not so familiar with IE functions and tried to use: $pageSource = _INetGetSource('http://www.hsbc.com.tr/tr/yatirim/doviz_altin') But unfortunately, I couldn't find the rates for buying / selling. I'm not sure, maybe it's because of FlashPlayer or something else. Is there any other way to get the rate values other than _INetGetSource function? Or how can i use _INetGetSource function for better results? Thanks in advance for your answers. TY. Link to comment Share on other sites More sharing options...
Solution mikell Posted August 29, 2014 Solution Share Posted August 29, 2014 (edited) The data you want are in a frame, so you must get the frame link first The frame content has a lot of text so the Inet is a bit long, be patient #Include <Array.au3> $txt = BinaryToString(InetRead("http://www.hsbc.com.tr/tr/yatirim/doviz_altin/", 1)) $link = StringRegExpReplace($txt, '(?s).+frame\h*src="([^"]+).+', "$1") msgbox(0,"frame link", $link) $txt = BinaryToString(InetRead($link)) msgbox(0,"", "loaded") ; $res = StringRegExp($txt, '(?s)tableEx1:0:text1(?:5|6).+?>([^<]+)', 3) $res = StringRegExp($txt, '(?s)(?:indirectParitform:tableEx1:text5|tableEx1:0:text1(?:5|6)).+?>([^<]+)', 3) _ArrayDisplay($res) To get it faster you might use an other site Edited August 29, 2014 by mikell taylansan 1 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