new script and template

This commit is contained in:
3err0
2019-06-14 16:32:47 +08:00
parent f46ac1c311
commit 1021f01a4b
2 changed files with 366 additions and 0 deletions
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import requests
import json
bitcoin_api_url = 'https://api.coinmarketcap.com/v1/ticker/'
r = requests.get(bitcoin_api_url)
report = r.json()
json_encoded = json.dumps(report)
print(json_encoded)