From 30d14f989879227c1de5fc52a037171c53f727ab Mon Sep 17 00:00:00 2001 From: hubobel Date: Sat, 3 Jun 2017 19:17:41 +0200 Subject: [PATCH] =?UTF-8?q?l=C3=A4uft=20in=20Schleife=20und=20pusht=20SV?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_dictionary.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/test_dictionary.py b/test_dictionary.py index 838c8ec..8653cb8 100644 --- a/test_dictionary.py +++ b/test_dictionary.py @@ -1,26 +1,17 @@ import urllib.request import requests -def email_alert(first): - report = {} - report["value1"] = first +import datetime - urllib.request.urlopen("https://maker.ifttt.com/trigger/kalender/with/key/foLJhy361EqeESdkssI-J", data=report) +datum = datetime.datetime.now().strftime("%H:%M") print("Choose your third string.") c = input() #email_alert(c) url1 = "https://maker.ifttt.com/trigger/iCloud/with/key/foLJhy361EqeESdkssI-J?value1=" -url2 = "&value2=12:05" -url = url1 + c + url2 +url2 = "&value2=" +url = url1 + c + url2 + datum print(url) -#requests.get("https://maker.ifttt.com/trigger/iCloud/with/key/foLJhy361EqeESdkssI-J?value1=test_final&value2=12:05") +requests.get("https://maker.ifttt.com/trigger/iCloud/with/key/foLJhy361EqeESdkssI-J?value1=test_final&value2=12:05") requests.get(url) - - - - - - -