mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Clean up recipe
This commit is contained in:
parent
2f998e0e8e
commit
59d39cca4c
@ -15,7 +15,9 @@ def classes(classes):
|
|||||||
class SaturdayPaper(BasicNewsRecipe):
|
class SaturdayPaper(BasicNewsRecipe):
|
||||||
title = 'The Saturday Paper'
|
title = 'The Saturday Paper'
|
||||||
__author__ = 'Alistair Francis'
|
__author__ = 'Alistair Francis'
|
||||||
description = 'The Saturday Paper is a weekly newspaper, dedicated to narrative journalism. It offers the biggest names and best writing in news, culture, and analysis, with a particular focus on Australia. '
|
description = (
|
||||||
|
'The Saturday Paper is a weekly newspaper, dedicated to narrative journalism.'
|
||||||
|
' It offers the biggest names and best writing in news, culture, and analysis, with a particular focus on Australia. ')
|
||||||
language = 'en_AU'
|
language = 'en_AU'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
@ -50,7 +52,7 @@ class SaturdayPaper(BasicNewsRecipe):
|
|||||||
title = self.tag_to_string(title)
|
title = self.tag_to_string(title)
|
||||||
|
|
||||||
url = a.find(class_="article__title_link")
|
url = a.find(class_="article__title_link")
|
||||||
if url == None:
|
if url is None:
|
||||||
continue
|
continue
|
||||||
url = url['href']
|
url = url['href']
|
||||||
if url.startswith('/'):
|
if url.startswith('/'):
|
||||||
@ -66,4 +68,3 @@ class SaturdayPaper(BasicNewsRecipe):
|
|||||||
articles.append((feed, news))
|
articles.append((feed, news))
|
||||||
|
|
||||||
return articles
|
return articles
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user