Created
January 5, 2018 13:50
-
-
Save 3h4x/0aa6b000d198d9ec8222e720c8f0bfd3 to your computer and use it in GitHub Desktop.
Checking Ubuntu AMI releases
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
python -c "import requests; import csv; import json; result = [row for row in csv.reader(requests.get('https://cloud-images.ubuntu.com/query/released.latest.txt').content.decode('utf-8').splitlines(), delimiter='\t')]; print(json.dumps({k[0]: k[3] for k in result}, indent=4))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment