Increase font size for article text in new newsweek profile

This commit is contained in:
Kovid Goyal 2008-03-12 23:29:20 +00:00
parent 2ccf260f7d
commit 32b5ebf861

View File

@ -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()