小编Wan*_*ign的帖子

browser_switcher_service.cc(238)] 使用 Chrome for Web Scraping 的 Python Selenium 脚本的 XXX Init() 错误

我使用一个小的 python 脚本和 chrome 驱动程序从 Mangafox 下载漫画。它曾经运行良好,直到几天前我更新 Chrome 浏览器。现在每次尝试时都会显示以下错误:

[14664:14280:0420/202509.245:ERROR:browser_switcher_service.cc(238)] XXX Init()
[14664:14280:0420/202509.678:ERROR:device_event_log_impl.cc(162)] [20:25:09.679] Bluetooth: bluetooth_adapter_winrt.cc:1186 Getting Radio failed. Chrome will be unable to change the power state by itself.
[14664:14280:0420/202509.695:ERROR:device_event_log_impl.cc(162)] [20:25:09.696] Bluetooth: bluetooth_adapter_winrt.cc:1264 OnPoweredRadioAdded(), Number of Powered Radios: 1
[14664:14280:0420/202509.696:ERROR:device_event_log_impl.cc(162)] [20:25:09.696] Bluetooth: bluetooth_adapter_winrt.cc:1283 OnPoweredRadiosEnumerated(), Number of Powered Radios: 1
Run Code Online (Sandbox Code Playgroud)

我使用了带有 chrome 驱动程序的 selenium 模块。我尝试更新我的网络驱动程序,尝试使代码循环或休眠,直到网页完全加载。

我的代码如下:

from selenium import webdriver
import os
import urllib.request


Main = 'https://ww3.mangafox.online/'
Name = str(input('Enter Name of Manga as on \'ww3.Mangafox.online\':  '))
Name = Name.replace(' …
Run Code Online (Sandbox Code Playgroud)

python selenium google-chrome web-scraping selenium-webdriver

6
推荐指数
2
解决办法
7650
查看次数