Browse Source

[instagram:user] Fix extraction (closes #16119)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
ff826177cc
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/instagram.py

+ 2
- 0
youtube_dl/extractor/instagram.py View File

@ -243,6 +243,8 @@ class InstagramUserIE(InfoExtractor):
return int_or_none(try_get( return int_or_none(try_get(
node, lambda x: x['edge_media_' + suffix]['count'])) node, lambda x: x['edge_media_' + suffix]['count']))
self._set_cookie('instagram.com', 'ig_pr', '1')
cursor = '' cursor = ''
for page_num in itertools.count(1): for page_num in itertools.count(1):
media = self._download_json( media = self._download_json(


Loading…
Cancel
Save