CNN Money login form URL changed

This commit is contained in:
Kovid Goyal 2017-08-02 20:25:23 +05:30
parent da9ebad88e
commit 3aeaf65f3b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -20,9 +20,8 @@ class Fortune(BasicNewsRecipe):
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
br.open(
'http://money.cnn.com/2013/03/21/smallbusiness/legal-marijuana-startups.pr.fortune/index.html')
br.select_form(name="paywall-form")
br.open('http://money.cnn.com/m/#!login')
br.select_form(name="loginForm")
br['email'] = self.username
br['password'] = self.password
br.submit()