Skip to content

Commit 6d746d5

Browse files
committed
fix parsing hpts and hptsh for login form
1 parent 7ea2255 commit 6d746d5

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)