Permalink
Browse files

Merge pull request #290 from chrox/fix_288

fix parsing hpts and hptsh for login form
  • Loading branch information...
2 parents 7ea2255 + 6d746d5 commit 8489a87d044e164edb321ba9acca8d4631de3dca @VitaliyRodnenko committed May 11, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 geeknote/oauth.py
View
4 geeknote/oauth.py
@@ -190,8 +190,8 @@ def login(self):
{'oauth_token': self.tmpOAuthToken})
# parse hpts and hptsh from page content
- hpts = re.search('.*"hpts":"(.*?)"', response.data)
- hptsh = re.search('.*"hptsh":"(.*?)"', response.data)
+ hpts = re.search('.*\("hpts"\)\.value.*?"(.*?)"', response.data)
+ hptsh = re.search('.*\("hptsh"\)\.value.*?"(.*?)"', response.data)
if response.status != 200:
logging.error("Unexpected response status "

0 comments on commit 8489a87

Please sign in to comment.