We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea2255 commit 6d746d5Copy full SHA for 6d746d5
geeknote/oauth.py
@@ -190,8 +190,8 @@ def login(self):
190
{'oauth_token': self.tmpOAuthToken})
191
192
# parse hpts and hptsh from page content
193
- hpts = re.search('.*"hpts":"(.*?)"', response.data)
194
- hptsh = re.search('.*"hptsh":"(.*?)"', response.data)
+ hpts = re.search('.*\("hpts"\)\.value.*?"(.*?)"', response.data)
+ hptsh = re.search('.*\("hptsh"\)\.value.*?"(.*?)"', response.data)
195
196
if response.status != 200:
197
logging.error("Unexpected response status "
0 commit comments