mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
[instagram] show cookie warning
This commit is contained in:
parent
888a9e29f3
commit
fd78897834
@ -19,9 +19,9 @@ def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwarg
|
|||||||
api_url = 'https://i.instagram.com/api/v1/media/%s/info/' % media_id
|
api_url = 'https://i.instagram.com/api/v1/media/%s/info/' % media_id
|
||||||
try:
|
try:
|
||||||
api_cont = get_content(api_url, headers={**fake_headers, **{'x-ig-app-id': appId}})
|
api_cont = get_content(api_url, headers={**fake_headers, **{'x-ig-app-id': appId}})
|
||||||
|
post = json.loads(api_cont)
|
||||||
except:
|
except:
|
||||||
log.wtf('[Error] Please specify a cookie file.')
|
log.wtf('[Error] Please specify a cookie file.')
|
||||||
post = json.loads(api_cont)
|
|
||||||
|
|
||||||
for item in post['items']:
|
for item in post['items']:
|
||||||
code = item['code']
|
code = item['code']
|
||||||
|
Loading…
Reference in New Issue
Block a user