-
-
Save cargabsj175/aed7f29327620d67e41f9a4870e9f6ad to your computer and use it in GitHub Desktop.
one liner para ver el precio del dólar paralelo :(
This file contains 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
perl -MLWP::Simple -MJSON -e '$ref = JSON->new->utf8(0)->decode(get("https://s3.amazonaws.com/dolartoday/data.json")); print $ref->{'USD'}{'transferencia'}. "\n";' |
This file contains 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
# dolar transferencia | |
curl -s 'https://s3.amazonaws.com/dolartoday/data.json' | python -c "import sys, json; print(json.load(sys.stdin)['USD']['transferencia'])" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment