|
@@ -0,0 +1,15 @@
|
|
|
|
+import logging
|
|
|
|
+
|
|
|
|
+import yt_dlp
|
|
|
|
+
|
|
|
|
+if __name__ == '__main__':
|
|
|
|
+ url = "https://www.youtube.com/watch?v=szWDP5CBtyY"
|
|
|
|
+ logging.info(f"fetching: {url}")
|
|
|
|
+
|
|
|
|
+ with yt_dlp.YoutubeDL({
|
|
|
|
+ "flat-playlist": True,
|
|
|
|
+ "extract_flat": "flat-playlist",
|
|
|
|
+ "proxy": f'http://3.89.30.178:38080'
|
|
|
|
+ }) as ydl:
|
|
|
|
+ info = ydl.extract_info(url, download=False)
|
|
|
|
+ logging.info(f"info: {info}")
|