Skip to content

Commit

Permalink
web: Add user_agent to settings for export
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Apr 11, 2018
1 parent 18501e7 commit 1de1f50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log

## 1.5.2 (pending)
## 1.5.3
- Web API:
* ``client.settings`` now includes ``user_agent`` which you should persist since ``rhx_gis`` is dependent on both the ``csrftoken`` (in cookie) and the client's ``user_agent``

## 1.5.2
- Web API:
* Fix for new ``query_hash`` param and ``X-Instagram-GIS`` signed header requirement
* You should now store the ``rhx_gis`` value returned by ``client.settings`` along with the cookie string
Expand Down
1 change: 1 addition & 0 deletions instagram_web_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def settings(self):
'cookie': self.opener.cookie_jar.dump(),
'created_ts': int(time.time()),
'rhx_gis': self.rhx_gis,
'user_agent': self.user_agent,
}

@staticmethod
Expand Down

0 comments on commit 1de1f50

Please sign in to comment.