Created
February 28, 2018 17:28
-
-
Save ettorerizza/3dbfcd10ff3bb9a75ff48f3326ca8a7b to your computer and use it in GitHub Desktop.
Use a command line tool from Python, example
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
| 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