[instagram] Add referrer to prevent throttling (#676)

Code from: https://github.com/ytdl-org/youtube-dl/pull/29751
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29736

Authored by: u-spec-png, kikuyan
This commit is contained in:
SsSsS 2021-08-14 19:15:01 +00:00 committed by GitHub
parent be44eefd5e
commit 3dd39c5f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,6 +277,9 @@ def get_count(keys, kind):
'like_count': like_count,
'comment_count': comment_count,
'comments': comments,
'http_headers': {
'Referer': 'https://www.instagram.com/',
}
}