banyous / quora-scraper

Scrape data from Quora website: questions related to certain topics, answers given on certain questions and users profile data
MIT License
53 stars 17 forks source link

Doesnt work on windows #11

Open developdeez opened 3 years ago

developdeez commented 3 years ago

Didnt work on windows

Traceback (most recent call last):
  File "C:\Python39\Scripts\quora-scraper-script.py", line 33, in <module>
    sys.exit(load_entry_point('quora-scraper==1.1.3', 'console_scripts', 'quora-scraper')())
  File "C:\Python39\lib\site-packages\quora_scraper\scraper.py", line 551, in main
    questions(keywords_list,save_path)
  File "C:\Python39\lib\site-packages\quora_scraper\scraper.py", line 115, in questions
    browser=connectchrome()
  File "C:\Python39\lib\site-packages\quora_scraper\scraper.py", line 42, in connectchrome
    driver = webdriver.Chrome(executable_path=driver_path, options=options)
  File "C:\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
    self.service.start()
  File "C:\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "C:\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 193] %1 is not a valid Win32 application
eng-aomar commented 2 years ago

I am facing the same problem, can anyone help?

RchrdKlly commented 2 years ago

I am also facing the same problem, any solutions??

FreyaZhao commented 2 years ago

我尝试了好几天。例如,先看一下你的谷歌浏览器版本,下载对应的Chromdriver,然后找到你安装的python 3.10.6\Lib\site-packages\quora_scraper,用你下载的替换文件原来的chromedriver。