Ghauster / BilibiliCommentScraper

B站视频评论爬虫 Bilibili完整爬取评论数据,包括一级评论、二级评论、昵称、用户ID、发布时间、点赞数
MIT License
293 stars 27 forks source link

不是有效的Win32应用程序 #18

Open Harvey-Walker opened 3 months ago

Harvey-Walker commented 3 months ago

我在运行程序时出现如下报错: Traceback (most recent call last): File "C:\Users\Administrator\Desktop\BilibiliCommentScraper\Bilicomment.py", line 475, in main() File "C:\Users\Administrator\Desktop\BilibiliCommentScraper\Bilicomment.py", line 303, in main driver = webdriver.Chrome(service=Service(executable_path=ChromeDriverManager().install())) File "D:\Python3.12.1\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 80, in init super().init( File "D:\Python3.12.1\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 101, in init self.service.start() File "D:\Python3.12.1\Lib\site-packages\selenium\webdriver\common\service.py", line 90, in start self._start_process(self.path) File "D:\Python3.12.1\Lib\site-packages\selenium\webdriver\common\service.py", line 203, in _start_process self.process = subprocess.Popen( File "D:\Python3.12.1\Lib\subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "D:\Python3.12.1\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

Marvingao commented 2 months ago

webdriver的问题吧,你自己写一个看能不能打开网页