下記の要素から114.019の数値情報を取得するコードを教えて下さい。
<span style="color: rgb(22, 157, 38);">114.019</span>
宜しくお願い致します。
では、これで。
// http://d.hatena.ne.jp/language_and_engineering/20140204/controlIeBrowserbyUWSC url = "http://example.com" ie = CREATEOLEOBJ("InternetExplorer.Application") //ie = GETACTIVEOLEOBJ("InternetExplorer.Application") ie.navigate(url) ie.visible = True ie_wait(ie) iframe1 = ie.Document.getElementById("platform-trade-iframe").contentDocument iframe2 = iframe1.getElementById("chart_iframe0").contentDocument spans = iframe2.getElementById("trade_value").getElementsByTagName("span") while true print spans.Item(0).innerHTML sleep(1) wend procedure ie_wait( ie ) repeat sleep( 0.1 ) until ( ! ie.busy ) and ( ie.readystate = 4 ) sleep( 0.2 ) fend
回答を頂きまして有り難うございます。
2014/11/11 08:50:45url = "http://example.com"
上記の部分を下記に書き換えて動かしてみました。
url = "https://www.opteck-jp.com/%E3%83%87%E3%83%A2%E5%8F%96%E5%BC%95"
結果は、下図添付図の様に絵ターが出ています。
https://www.dropbox.com/s/y4mlkmjtqj0qctv/2014-11-11%2008%2044%2031.jpg?dl=0
お手数ですが、対応につきましてご教示頂きたいのですが宜しくお願い致します。
遅くなりましたが書き直しました。
2014/11/12 18:24:25