chipling commited on
Commit
1a181c7
·
verified ·
1 Parent(s): 9d81680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -73,11 +73,25 @@ def po_token_verifier() -> Tuple[str, str]:
73
  def video_id(id: str):
74
  url = f"https://www.youtube.com/watch?v={id}"
75
  log.info(f"Fetching YouTube video for ID: {id}")
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  try:
78
  yt = YouTube(
79
  url,
80
- 'WEB'
 
81
  )
82
  ys = yt.streams.get_highest_resolution()
83
 
 
73
  def video_id(id: str):
74
  url = f"https://www.youtube.com/watch?v={id}"
75
  log.info(f"Fetching YouTube video for ID: {id}")
76
+
77
+ proxies = [
78
+ "198.23.239.134:6540:widxbsal:cnu4fy74afh7",
79
+ "207.244.217.165:6712:widxbsal:cnu4fy74afh7",
80
+ "107.172.163.27:6543:widxbsal:cnu4fy74afh7",
81
+ "23.94.138.75:6349:widxbsal:cnu4fy74afh7",
82
+ "216.10.27.159:6837:widxbsal:cnu4fy74afh7",
83
+ "136.0.207.84:6661:widxbsal:cnu4fy74afh7",
84
+ "64.64.118.149:6732:widxbsal:cnu4fy74afh7",
85
+ "142.147.128.93:6593:widxbsal:cnu4fy74afh7",
86
+ "104.239.105.125:6655:widxbsal:cnu4fy74afh7",
87
+ "173.0.9.70:5653:widxbsal:cnu4fy74afh7"
88
+ ]
89
 
90
  try:
91
  yt = YouTube(
92
  url,
93
+ 'WEB',
94
+ proxies=proxies
95
  )
96
  ys = yt.streams.get_highest_resolution()
97