Created
July 15, 2015 03:49
-
-
Save kazgoto/8d23cb2fb8aa9143de9e to your computer and use it in GitHub Desktop.
get current USDJPY from Yahoo! Japan Finance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://info.finance.yahoo.co.jp/fx/ | ruby -ne '$_.match(/<span id="USDJPY_top_bid">(.*?)<\/span>/){|s| puts s[1]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment