Skip to content

Instantly share code, notes, and snippets.

@kazgoto
Created July 15, 2015 03:49
Show Gist options
  • Save kazgoto/8d23cb2fb8aa9143de9e to your computer and use it in GitHub Desktop.
Save kazgoto/8d23cb2fb8aa9143de9e to your computer and use it in GitHub Desktop.
get current USDJPY from Yahoo! Japan Finance
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