diff --git a/recipes/respekt_magazine.recipe b/recipes/respekt_magazine.recipe index 7d7aa5b10f..2ee071e28c 100644 --- a/recipes/respekt_magazine.recipe +++ b/recipes/respekt_magazine.recipe @@ -12,14 +12,13 @@ from calibre.ebooks.BeautifulSoup import BeautifulSoup # This imports the version bundled with Calibre import lxml from lxml.builder import E -respekt_url = 'http://www.respekt.cz' - +respekt_url = 'https://www.respekt.cz' class respektRecipe(BasicNewsRecipe): __author__ = 'Tomáš Hnyk' publisher = u'Respekt Publishing a. s.' description = u'Articles from the print edition' - title = u'Respekt Magazine – Print' + title = u'Respekt Magazine — Print' encoding = 'utf-8' language = 'cs' delay = 0.001 @@ -74,10 +73,10 @@ class respektRecipe(BasicNewsRecipe): return raw_html def parse_index(self): - raw1 = self.index_to_soup('http://www.respekt.cz/tydenik/', raw=True) + raw1 = self.index_to_soup('https://www.respekt.cz/tydenik/', raw=True) root1 = lxml.html.fromstring(raw1) current_edition_url = root1.xpath("//div[@class='heroissue']/a")[0].items()[0][1] - raw2 = self.index_to_soup('http://www.respekt.cz/' + current_edition_url, raw=True) + raw2 = self.index_to_soup('https://www.respekt.cz/' + current_edition_url, raw=True) root2 = lxml.html.fromstring(raw2) self.cover_url = root2.xpath("//i[contains(@class, 'heroissue-cover')]")[0].get("data-src") # Fetch date