[instagram] fix

This commit is contained in:
Mort Yao 2022-03-18 23:16:44 +01:00
parent 3d5bd2b13d
commit 699391135b
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -25,7 +25,7 @@ def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwarg
try:
info = json.loads(data.group(1))
post = info['entry_data']['PostPage'][0]
assert post
assert post['items']
except:
# with logged-in cookies
data = re.search(r'window\.__additionalDataLoaded\(\'[^\']+\',(.*)\);</script>', cont)