diff --git a/Shitpost.py b/Shitpost.py index 6ebdafd..9d14b16 100644 --- a/Shitpost.py +++ b/Shitpost.py @@ -128,7 +128,7 @@ class Shitpost(object): ('format/', 'json') ) response = requests.get('https://corona-stats.online/NL/?format=json&source=2') - answer = json.loads(response.content) + answer = json.loads(response.content.decode('utf-8')) answer = answer["data"] message = "Volgens mij zijn er in Nederland " + str(answer[0]["cases"]) + " bevestigde gevallen " message += "en " + str(answer[0]["deaths"]) + " dooies 💀, en liggen er "