Created
January 10, 2014 19:57
-
-
Save tormodfj/8361479 to your computer and use it in GitHub Desktop.
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
function Convert-Currency { | |
param($from = "eur", $to = "nok") | |
$url = "https://www.google.com/finance/converter?a=1&from=$from&to=$to" | |
$result = Invoke-WebRequest $url | |
$result.AllElements | Where id -eq 'currency_converter_result' | Select -ExpandProperty innerText | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment