Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #290 from chrox/fix_288

fix parsing hpts and hptsh for login form
  • Loading branch information...
commit 8489a87d044e164edb321ba9acca8d4631de3dca 2 parents 7ea2255 + 6d746d5
@VitaliyRodnenko authored
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 "
Please sign in to comment.
Something went wrong with that request. Please try again.