[instagram:user] Remove User-Agent from signature (closes #16119)
authorSergey M․ <dstftw@gmail.com>
Fri, 13 Apr 2018 15:27:52 +0000 (22:27 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 13 Apr 2018 15:28:33 +0000 (22:28 +0700)
youtube_dl/extractor/instagram.py

index 76452a6a147ddb519795f9b0317aa156c5a9e12f..8da1d5f2fee0c4deabeb581e798076e2e9b69ab5 100644 (file)
@@ -11,7 +11,6 @@ from ..utils import (
     get_element_by_attribute,
     int_or_none,
     lowercase_escape,
-    std_headers,
     try_get,
 )
 
@@ -258,7 +257,7 @@ class InstagramUserIE(InfoExtractor):
                 'first': 100,
                 'after': cursor,
             })
-            s = '%s:%s:%s:%s' % (rhx_gis, csrf_token, std_headers['User-Agent'], variables)
+            s = '%s:%s:%s' % (rhx_gis, csrf_token, variables)
             media = self._download_json(
                 'https://www.instagram.com/graphql/query/', uploader_id,
                 'Downloading JSON page %d' % page_num, headers={