Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 8489a87

Browse files
author
Vitaliy Rodnenko
committed
Merge pull request vitalyrodnenko#290 from chrox/fix_288
fix parsing hpts and hptsh for login form
2 parents 7ea2255 + 6d746d5 commit 8489a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geeknote/oauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def login(self):
190190
{'oauth_token': self.tmpOAuthToken})
191191

192192
# parse hpts and hptsh from page content
193-
hpts = re.search('.*"hpts":"(.*?)"', response.data)
194-
hptsh = re.search('.*"hptsh":"(.*?)"', response.data)
193+
hpts = re.search('.*\("hpts"\)\.value.*?"(.*?)"', response.data)
194+
hptsh = re.search('.*\("hptsh"\)\.value.*?"(.*?)"', response.data)
195195

196196
if response.status != 200:
197197
logging.error("Unexpected response status "

0 commit comments

Comments
 (0)