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)