I'm genuinely unsure as to what's wrong with my program. It was functioning last week, and I didn't even change any code, but now when I run my scraper, after firefox opens up, nothing happens for quite some time, and then I get the following error
Traceback (most recent call last):
File "C:/Users/usernameredracted/PycharmProjects/scraper - Copy/demospider.py", line 179, in <module>
scrapeit()
File "C:/Users/usernameredracted/PycharmProjects/scraper - Copy/demospider.py", line 47, in scrapeit
driver = init_driver()
File "C:/Users/usernameredracted/PycharmProjects/scraper - Copy/demospider.py", line 16, in init_driver
driver = webdriver.Firefox()
File "C:\Users\usernameredracted\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\firefox\webdriver.py", line 155, in __init__
keep_alive=True)
File "C:\Users\usernameredracted\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\webdriver.py", line 92, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:\Users\usernameredracted\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\webdriver.py", line 179, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File "C:\Users\usernameredracted\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\webdriver.py", line 238, in execute
self.error_handler.check_response(response)
File "C:\Users\usernameredracted\AppData\Roaming\Python\Python36\site-packages\selenium\webdriver\remote\errorhandler.py", line 193, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: connection refused
I tried the solution listed in (selenium.common.exceptions.WebDriverException: Message: connection refused) but that got me a different error
OSError=[WinError 2] The system cannot find the file specified
Program install error!
Any advice on what to do?