This commit is contained in:
Kovid Goyal 2011-04-28 15:42:42 -06:00
parent 7267091aea
commit a8985831f2

View File

@ -59,9 +59,9 @@ class HBR(BasicNewsRecipe):
def get_browser(self): def get_browser(self):
br = BasicNewsRecipe.get_browser(self) br = BasicNewsRecipe.get_browser(self)
br.open(self.LOGIN_URL) br.open(self.LOGIN_URL)
br.select_form(name='signInForm') br.select_form(name='signin-form')
br['signInForm:username'] = self.username br['signin-form:username'] = self.username
br['signInForm:password'] = self.password br['signin-form:password'] = self.password
raw = br.submit().read() raw = br.submit().read()
if 'My Account' not in raw: if 'My Account' not in raw:
raise Exception('Failed to login, are you sure your username and password are correct?') raise Exception('Failed to login, are you sure your username and password are correct?')