From 2042052a92742482465398ab2e99368badef7bb2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Dec 2009 09:10:14 -0700 Subject: [PATCH] Improved recipe for the Financial Times --- resources/recipes/financial_times.recipe | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/recipes/financial_times.recipe b/resources/recipes/financial_times.recipe index 9c42c1e8f7..2864f7be89 100644 --- a/resources/recipes/financial_times.recipe +++ b/resources/recipes/financial_times.recipe @@ -21,6 +21,7 @@ class FinancialTimes(BasicNewsRecipe): needs_subscription = True simultaneous_downloads= 1 delay = 1 + LOGIN = 'https://registration.ft.com/registration/barrier/login' def get_browser(self): @@ -38,7 +39,16 @@ class FinancialTimes(BasicNewsRecipe): remove_tags = [ dict(name='div', attrs={'id':'floating-con'}) ] - + + extra_css = ''' + body{font-family:Arial,Helvetica,sans-serif;} + h2(font-size:large;} + .ft-story-header(font-size:xx-small;} + .ft-story-body(font-size:small;} + a{color:#003399;} + .container{font-size:x-small;} + h3{font-size:x-small;color:#003399;} + ''' feeds = [ (u'UK' , u'http://www.ft.com/rss/home/uk' ) ,(u'US' , u'http://www.ft.com/rss/home/us' ) @@ -50,4 +60,4 @@ class FinancialTimes(BasicNewsRecipe): content_type = soup.find('meta', {'http-equiv':'Content-Type'}) if content_type: content_type['content'] = 'text/html; charset=utf-8' - return soup \ No newline at end of file + return soup