4
1
I search for a way to get the last exchange rate online using the command line. I want to use it with another program. Until now all I have is this:
wget -qO- "http://www.google.com/finance/converter?a=1&from=usd&to=inr&hl=es" | sed '/res/!d;s/<[^>]*>//g';
Not my code, found on web.
It will output to console, but I need to save it in a file or to a variable in other program that will call that command. I don't have experience with wget and couldn't find any other way to do what I want. Is there any program (Windows is preferred, but *nix is acceptable) to do that or is there a way with wget?
hi, when I try to use this command it returns ERROR 403 forbidden. does it is possible that now (2018) google is preventing calls from non-browser clients? is that service or other equivalent available? – cesarpachon – 2018-04-27T11:32:14.060