[instagram:user] Fix extraction (closes #16119)
authorSergey M․ <dstftw@gmail.com>
Sat, 7 Apr 2018 16:57:32 +0000 (23:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 7 Apr 2018 16:58:57 +0000 (23:58 +0700)
youtube_dl/extractor/instagram.py

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