Spaces:
Runtime error
Runtime error
Commit
·
20a693a
1
Parent(s):
abc305b
update
Browse files- download_video.py +4 -0
download_video.py
CHANGED
@@ -16,6 +16,10 @@ def download_mp3_selenium(youtube_url):
|
|
16 |
options.add_argument('--disable-gpu') # Disable GPU to ensure it runs in cloud environments
|
17 |
options.add_argument('--verbose')
|
18 |
options.add_argument('--log-path=/tmp/chromedriver.log')
|
|
|
|
|
|
|
|
|
19 |
|
20 |
log_contents = "" # Initialize log_contents
|
21 |
|
|
|
16 |
options.add_argument('--disable-gpu') # Disable GPU to ensure it runs in cloud environments
|
17 |
options.add_argument('--verbose')
|
18 |
options.add_argument('--log-path=/tmp/chromedriver.log')
|
19 |
+
options.add_argument('--disable-software-rasterizer') # Disable software rasterizer
|
20 |
+
options.add_argument('--remote-debugging-port=9222') # Enable remote debugging
|
21 |
+
options = webdriver.ChromeOptions()
|
22 |
+
|
23 |
|
24 |
log_contents = "" # Initialize log_contents
|
25 |
|