Skip to content

Commit

Permalink
[instagram] show cookie warning
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Dec 11, 2022
1 parent 888a9e2 commit fd78897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
try:
api_cont = get_content(api_url, headers={**fake_headers, **{'x-ig-app-id': appId}})
post = json.loads(api_cont)
except:
log.wtf('[Error] Please specify a cookie file.')
post = json.loads(api_cont)

for item in post['items']:
code = item['code']
Expand Down

0 comments on commit fd78897

Please sign in to comment.