Closed rhatami7495 closed 3 years ago
For example, you can dump requests through ProxyMan or Charles
But why do you need it? Everything is already implemented in https://adw0rd.github.io/instagrapi/usage-guide/insight.html
When I use Charles , it gets a binary result for Instagram api. What do you think I should do?
@rhatami7495 have you turned on Whitehat Settings?
Does instagram give you response headers? If only body is binary, then is there any mention of zstd compression in the headers?
And install zstd tool. For macos:
brew install zstd
$ cat ~/response.bin
eDʔ�I��mWv��̤C'wV�z'$(�|�s�ߜ�is6@.*vC{v |�w3���
$ zstdcat ~/response.bin
{"friendship_status":{"following":false,"followed_by":false,"blocking":false,"muting":false,"is_private":false,"incoming_request":false,"outgoing_request":false,"is_bestie":false,"is_restricted":false},"status":"ok"}
For linux or any other system, you can use my utility:
pip install zstdcat
https://github.com/adw0rd/zstdcat https://pypi.org/project/zstdcat/
Or install python package pip install zstd
import zstd, json
json.loads(zstd.decompress(open('/tmp/response.bin', 'rb').read()).decode())
Or install python package
pip install zstd
import zstd, json json.loads(zstd.decompress(open('/tmp/response.bin', 'rb').read()).decode())
@rhatami7495 just created for this https://github.com/adw0rd/zstdcat
hi.how to get doc_id and set for api ads/graphql/?