Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Nov 29, 2024
1 parent ed5198b commit 6265f0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions objects/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6265f0e

Please sign in to comment.