mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Increase font size for article text in new newsweek profile
This commit is contained in:
parent
2ccf260f7d
commit
32b5ebf861
@ -40,10 +40,8 @@ class Newsweek(BasicNewsRecipe):
|
||||
'http://feeds.newsweek.com/newsweek/columnists/GeorgeFWill',
|
||||
'http://feeds.newsweek.com/newsweek/columnists/AnnaQuindlen',
|
||||
]
|
||||
# For testing
|
||||
feeds = feeds[:2]
|
||||
max_articles_per_feed = 1
|
||||
|
||||
extra_css = '#content { font:serif,120%; }'
|
||||
keep_only_tags = [dict(name='div', id='content')]
|
||||
|
||||
remove_tags = [
|
||||
@ -56,6 +54,12 @@ class Newsweek(BasicNewsRecipe):
|
||||
recursions = 1
|
||||
match_regexps = [r'http://www.newsweek.com/id/\S+/page/\d+']
|
||||
|
||||
# For testing
|
||||
#feeds = feeds[:2]
|
||||
#max_articles_per_feed = 1
|
||||
|
||||
|
||||
|
||||
def postprocess_html(self, soup):
|
||||
divs = list(soup.findAll('div', 'pagination'))
|
||||
divs[0].extract()
|
||||
|
Loading…
x
Reference in New Issue
Block a user