This commit is contained in:
topynate 2020-12-19 06:08:26 +02:00 committed by GitHub
parent b3e96eabab
commit 1c9db52ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ class Substack(BasicNewsRecipe):
br = BasicNewsRecipe.get_browser(self) br = BasicNewsRecipe.get_browser(self)
if self.username is not None and self.password is not None: if self.username is not None and self.password is not None:
br.open('https://substack.com/account/login?redirect=%2F&email=&with_password=') br.open('https://substack.com/account/login?redirect=%2F&email=&with_password=')
data = json.dumps({'email': self.username, 'password': self.password, 'captch_response':None}) data = json.dumps({'email': self.username, 'password': self.password, 'captcha_response':None})
req = Request( req = Request(
url='https://substack.com/api/v1/login', url='https://substack.com/api/v1/login',
headers = { headers = {