From 1021f01a4bcef94333835274eaf31074b6a6a0a1 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Fri, 14 Jun 2019 16:32:47 +0800 Subject: [PATCH] new script and template --- Coins | 10 ++ template_info.xml | 356 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100755 Coins create mode 100644 template_info.xml diff --git a/Coins b/Coins new file mode 100755 index 0000000..42d8942 --- /dev/null +++ b/Coins @@ -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) diff --git a/template_info.xml b/template_info.xml new file mode 100644 index 0000000..b625ca2 --- /dev/null +++ b/template_info.xml @@ -0,0 +1,356 @@ + + + 4.2 + 2019-06-14T08:30:45Z + + + Templates/Applications + + + + + + + + Coins + 900 + 200 + 0.0000 + 100.0000 + 1 + 0 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 4000FF + 0 + 2 + 0 + + Information + course.bitcoin + + + + 1 + 0 + FFFF00 + 0 + 2 + 0 + + Information + course.ethereum + + + + 2 + 0 + F7941D + 0 + 2 + 0 + + Information + course.litecoin + + + + + +