diff --git a/objects/youtube.py b/objects/youtube.py index d9f13fb8..6df218fb 100644 --- a/objects/youtube.py +++ b/objects/youtube.py @@ -82,6 +82,8 @@ def add_user_agent(): ("Accept-Language", "en-US,en;q=0.9"), ("Accept", "*/*"), ("Connection", "keep-alive"), + ("X-Forwarded-For", "203.0.113.1"), # Example valid IP + ("X-Real-IP", "203.0.113.1"), # Example valid IP ] opener = urllib.request.build_opener() opener.addheaders = headers