From 8201cc0aa3e9263a216745bd93e3588c1fbcb78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Fuglede=20J=C3=B8rgensen?= Date: Mon, 10 Jul 2017 12:41:50 +0300 Subject: [PATCH] Secure references to ganeshaspeaks.com --- pyhoroscope.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyhoroscope.py b/pyhoroscope.py index fb9d269..d92dc89 100644 --- a/pyhoroscope.py +++ b/pyhoroscope.py @@ -10,7 +10,7 @@ class Horoscope: @staticmethod def get_todays_horoscope(sunsign): - url = "http://www.ganeshaspeaks.com/horoscopes/daily-horoscope/" + sunsign + url = "https://www.ganeshaspeaks.com/horoscopes/daily-horoscope/" + sunsign response = urllib.request.urlopen(url) htmlparser = etree.HTMLParser() tree = etree.parse(response, htmlparser) @@ -30,7 +30,7 @@ def get_todays_horoscope(sunsign): @staticmethod def get_weekly_horoscope(sunsign): - url = "http://www.ganeshaspeaks.com/horoscopes/weekly-horoscope/" + sunsign + url = "https://www.ganeshaspeaks.com/horoscopes/weekly-horoscope/" + sunsign response = urllib.request.urlopen(url) htmlparser = etree.HTMLParser() tree = etree.parse(response, htmlparser) @@ -50,7 +50,7 @@ def get_weekly_horoscope(sunsign): @staticmethod def get_monthly_horoscope(sunsign): - url = "http://www.ganeshaspeaks.com/horoscopes/monthly-horoscope/" + sunsign + url = "https://www.ganeshaspeaks.com/horoscopes/monthly-horoscope/" + sunsign response = urllib.request.urlopen(url) htmlparser = etree.HTMLParser() tree = etree.parse(response, htmlparser) @@ -70,7 +70,7 @@ def get_monthly_horoscope(sunsign): @staticmethod def get_yearly_horoscope(sunsign): - url = "http://www.ganeshaspeaks.com/horoscopes/yearly-horoscope/" + sunsign + url = "https://www.ganeshaspeaks.com/horoscopes/yearly-horoscope/" + sunsign response = urllib.request.urlopen(url) htmlparser = etree.HTMLParser() tree = etree.parse(response, htmlparser)