hcjohn463 / JableTVDownload

下載 jable好幫手
Apache License 2.0
676 stars 149 forks source link

如何解決 ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100 ? #137

Open kptung opened 7 months ago

kptung commented 7 months ago

最近下載JABDL,都頻繁出現下面這個問題,請問是否有高手提供解法 DevTools listening on ws://127.0.0.1:51386/devtools/browser/d8e751bf-b975-41e1-a099-32b3b592fcef [0419/081657.949:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100

下載的設定如下 chrome_binary_path = os.path.join(cwd, 'chrome-win64', 'chrome.exe') chrome_driver_binary = os.path.join(cwd, 'chromedriver-win64', 'chromedriver.exe') options = Options() options.binary_location = chrome_binary_path options.add_argument('--no-sandbox') options.add_argument('--ignore-certificate-errors') options.add_experimental_option('excludeSwitches', ['enable-logging']) options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-extensions') options.add_argument('--disable-gpu') options.add_argument('-ignore-certificate-errors') options.add_argument('-ignore -ssl-errors') options.add_argument('--headless') options.add_argument("--log-level=3") options.add_argument('--headless') options.add_argument("user-agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36")

after selenium 4.10.0:

service = Service(executable_path=chrome_driver_binary) dr = webdriver.Chrome(service=service, options=options) dr.get(url) result = re.search("https://.+m3u8", dr.page_source)