Skip to content

Instantly share code, notes, and snippets.

@3h4x
Created January 5, 2018 13:50
Show Gist options
  • Select an option

  • Save 3h4x/0aa6b000d198d9ec8222e720c8f0bfd3 to your computer and use it in GitHub Desktop.

Select an option

Save 3h4x/0aa6b000d198d9ec8222e720c8f0bfd3 to your computer and use it in GitHub Desktop.

Revisions

  1. Marcin Brański created this gist Jan 5, 2018.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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))"