Skip to content

Instantly share code, notes, and snippets.

@ettorerizza
Created February 28, 2018 17:28
Show Gist options
  • Select an option

  • Save ettorerizza/3dbfcd10ff3bb9a75ff48f3326ca8a7b to your computer and use it in GitHub Desktop.

Select an option

Save ettorerizza/3dbfcd10ff3bb9a75ff48f3326ca8a7b to your computer and use it in GitHub Desktop.
Use a command line tool from Python, example
import subprocess
import json
json_file = subprocess.run("wdtaxonomy Q634 -f json", shell=True, stdout=subprocess.PIPE).stdout.decode('utf8')
print(json.loads(json_file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment