I've implemented the code below in my custom recipe, but I get an error, no form matching name 'wpIdnSignInForm'.
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
if self.username is not None and self.password is not None:
br.open('https://subscribe.washingtonpost.com/loginregistration/index.html#/register/group/long?action=login')
br.select_form(name='wpIdntSignInForm')
br['username'] = self.username
br['password'] = self.password
br.submit()
return br
|