可否用Python程序打开插件并下载视频实现自动化呢 #588
hahaha0721
announced in
Announcements
Replies: 2 comments
-
额 我惊了。。。😨 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Python也许用youtube-dl或者ytb-dlp会更合适一些呢 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
用gpt写了自动打开插件的代码,但插件总是无法正确打开:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
设置 Chrome 扩展路径
chrome_options = Options()
chrome_options.add_argument(r"C:\path\to\your\extension") # 插件路径
driver = webdriver.Chrome(options=chrome_options)
driver.get("https://your-target-page.com")
修改后的代码基本也形似这样,无法正确打开插件
Beta Was this translation helpful? Give feedback.
All reactions