Fix lwn.net login

The field names on the LWN login pages have changed and the recipe needs
to be updated to use the new field names.
This commit is contained in:
John Kristensen 2024-12-08 21:35:48 +11:00
parent d81c82b967
commit 5359ed3744

View File

@ -28,8 +28,8 @@ class LWN(BasicNewsRecipe):
if self.username is not None and self.password is not None:
br.open(self.LOGIN)
br.select_form(name='loginform')
br['Username'] = self.username
br['Password'] = self.password
br['uname'] = self.username
br['pword'] = self.password
br.submit()
return br