Browse Source

[instagram:user] Remove User-Agent from signature (closes #16119)

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

+ 1
- 2
youtube_dl/extractor/instagram.py View 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={


Loading…
Cancel
Save