Fix #829417 (Updated recipe for Financial times UK edition)

This commit is contained in:
Kovid Goyal 2011-08-19 07:37:38 -06:00
parent 0982feff0a
commit 0cab31a35f

View File

@ -24,6 +24,7 @@ class FinancialTimes(BasicNewsRecipe):
publication_type = 'newspaper'
masthead_url = 'http://im.media.ft.com/m/img/masthead_main.jpg'
LOGIN = 'https://registration.ft.com/registration/barrier/login'
LOGIN2 = 'http://media.ft.com/h/subs3.html'
INDEX = 'http://www.ft.com/uk-edition'
PREFIX = 'http://www.ft.com'
@ -39,7 +40,7 @@ class FinancialTimes(BasicNewsRecipe):
br = BasicNewsRecipe.get_browser()
br.open(self.INDEX)
if self.username is not None and self.password is not None:
br.open(self.LOGIN)
br.open(self.LOGIN2)
br.select_form(name='loginForm')
br['username'] = self.username
br['password'] = self.password