mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Scientific American
This commit is contained in:
parent
6eb593f663
commit
35622936bf
@ -53,7 +53,7 @@ class ScientificAmerican(BasicNewsRecipe):
|
|||||||
def get_browser(self, *args):
|
def get_browser(self, *args):
|
||||||
br = BasicNewsRecipe.get_browser(self)
|
br = BasicNewsRecipe.get_browser(self)
|
||||||
if self.username and self.password:
|
if self.username and self.password:
|
||||||
br.open("https://www.scientificamerican.com/my-account/login/")
|
br.open("https://www.scientificamerican.com/account/login/")
|
||||||
br.select_form(predicate=lambda f: f.attrs.get("id") == "login")
|
br.select_form(predicate=lambda f: f.attrs.get("id") == "login")
|
||||||
br["emailAddress"] = self.username
|
br["emailAddress"] = self.username
|
||||||
br["password"] = self.password
|
br["password"] = self.password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user