Skip to content

Commit

Permalink
Fix for changes in the signed header (h/t @2minchul #67)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Apr 17, 2018
1 parent 8e99f22 commit 5133b82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions instagram_web_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,8 @@ def generate_request_signature(self, query, endpoint=None):
return None

m = hashlib.md5()
m.update('{rhx_gis}:{csrf_token}:{variables}'.format(
m.update('{rhx_gis}:{variables}'.format(
rhx_gis=self.rhx_gis,
csrf_token=self.csrftoken,
variables=variables
).encode('utf-8'))
return m.hexdigest()
Expand Down Expand Up @@ -502,8 +501,6 @@ def media_comments(self, short_code, **kwargs):
'variables': json.dumps(variables, separators=(',', ':'))
}

if end_cursor:
query['after'] = end_cursor
info = self._make_request(self.GRAPHQL_API_URL, query=query)

if not info.get('data', {}).get('shortcode_media'):
Expand Down

0 comments on commit 5133b82

Please sign in to comment.