Skip to content

Commit

Permalink
Merge pull request tapaswenipathak#29 from fuglede/patch-1
Browse files Browse the repository at this point in the history
Secure references to ganeshaspeaks.com
  • Loading branch information
tapaswenipathak authored Sep 10, 2017
2 parents 1fc3978 + 8201cc0 commit d91bdaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyhoroscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit d91bdaa

Please sign in to comment.