(Oct-14-2018, 12:04 AM)metulburr Wrote: try adding headless=True
in the argument of set_headless as show in this tutorial
https://python-forum.io/Thread-Web-scraping-part-2
added it and it's struggling to execute the code. After a while I receive this:
Error:
C:\Python36\kodovi>sel6.py
Traceback (most recent call last):
File "C:\Python36\kodovi\sel6.py", line 9, in <module>
browser = webdriver.Firefox(options=opts)
File "C:\Python36\lib\site-packages\selenium\webdriver\firefox\webdriver.py",
line 174, in __init__
keep_alive=True)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 321, in execute
self.error_handler.check_response(response)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py"
, line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: connection refused
larz60+, I'm looking at your code and it looks a bit above my league.