QianyanTech / Image-Downloader

Download images from Google, Bing, Baidu. 谷歌、百度、必应图片下载.
MIT License
2.15k stars 561 forks source link

driver = webdriver.PhantomJS(executable_path=phantomjs_path报错如下 #53

Open hairushi opened 1 year ago

hairushi commented 1 year ago

[11:00:04] -e Baidu -n 100 -j 50 -o "./download_images/微笑" -S "微笑" [11:00:04] Scraping From Baidu Image Search ... [11:00:04] Keywords: 微笑 [11:00:04] Number: 100 [11:00:04] Face Only: False [11:00:04] Safe Mode: True [11:00:04] Query URL: https://image.baidu.com/search/index?tn=baiduimage&word=%E5%BE%AE%E7%AC%91 [11:01:05] Exception in thread [11:01:05] Thread-1 [11:01:05] : [11:01:05] Traceback (most recent call last): [11:01:05] File "F:\python\python\lib\threading.py", line 973, in _bootstrap_inner [11:01:05] self.run() [11:01:05] File "F:\python\python\lib\threading.py", line 910, in run [11:01:05] self._target(*self._args, **self._kwargs) [11:01:05] File "D:\mine\毕设\软件\Image-Downloader-1.0.5\image_downloader.py", line 46, in main [11:01:05] crawled_urls = crawler.crawl_image_urls(args.keywords, [11:01:05] File "D:\mine\毕设\软件\Image-Downloader-1.0.5\crawler.py", line 160, in crawl_image_urls [11:01:05] driver = webdriver.PhantomJS(executable_path=phantomjs_path, [11:01:05] File "F:\python\python\lib\site-packages\selenium\webdriver\phantomjs\webdriver.py", line 51, in init [11:01:05] self.service.start() [11:01:05] File "F:\python\python\lib\site-packages\selenium\webdriver\phantomjs\service.py", line 82, in start [11:01:05] raise WebDriverException( [11:01:05] selenium.common.exceptions [11:01:05] . [11:01:05] WebDriverException [11:01:05] : [11:01:05] Message: Can not connect to GhostDriver on port 14423 [11:01:05] stopped