mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 14:26:06 +01:00
pep8
This commit is contained in:
parent
2aa41c859b
commit
148df09652
1 changed files with 19 additions and 4 deletions
|
|
@ -3,9 +3,9 @@
|
|||
'''
|
||||
https://www.spectator.com.au/
|
||||
'''
|
||||
import re
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
|
||||
|
||||
class SpectatorAU(BasicNewsRecipe):
|
||||
title = 'Spectator Australia'
|
||||
__author__ = 'Pat Stapleton, Dean Cording, James Cridland'
|
||||
|
|
@ -24,11 +24,26 @@ class SpectatorAU(BasicNewsRecipe):
|
|||
publication_type = 'newspaper'
|
||||
extra_css = '.article-header__author{margin-bottom:20px;}'
|
||||
conversion_options = {
|
||||
'comments': description, 'tags': category, 'language': language, 'publisher': publisher, 'linearize_tables': False
|
||||
'comments': description,
|
||||
'tags': category,
|
||||
'language': language,
|
||||
'publisher': publisher,
|
||||
'linearize_tables': False
|
||||
}
|
||||
|
||||
keep_only_tags = [dict(attrs={'class': ['article']})]
|
||||
remove_tags = [dict(attrs={'class': ['big-author','article-header__category','margin-menu','related-stories','disqus_thread','middle-promo','show-comments','article-tags']}), dict(name=['h4','hr'])]
|
||||
remove_tags = [
|
||||
dict(
|
||||
attrs={
|
||||
'class': [
|
||||
'big-author', 'article-header__category', 'margin-menu',
|
||||
'related-stories', 'disqus_thread', 'middle-promo',
|
||||
'show-comments', 'article-tags'
|
||||
]
|
||||
}
|
||||
),
|
||||
dict(name=['h4', 'hr'])
|
||||
]
|
||||
remove_attributes = ['width', 'height']
|
||||
|
||||
feeds = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue