Skip to content

Instantly share code, notes, and snippets.

@dggsoares
dggsoares / curl_python.sh
Last active February 28, 2022 13:36
Curl request processing with Python3 using piping in bash
curl -s "ENDPOINT_RETURNING_JSON_RESPONSE" | python3 -c "import json,sys;print([f.get('accountName') for f in json.loads(sys.stdin.read()).get('value')])"