mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 06:06:55 +01:00
[instagram:user] Fix extraction (closes #16119)
This commit is contained in:
parent
9d15be3a5b
commit
ff826177cc
@ -243,6 +243,8 @@ def get_count(suffix):
|
|||||||
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…
Reference in New Issue
Block a user