Open orangeyichengyu opened 7 months ago
Inside config.py from utils/config.py :-
replace :-
profile = webdriver.FirefoxProfile()
With :-
profile = webdriver.FirefoxOptions()
and then try, maybe it will fix your issue.
Inside config.py from utils/config.py :-
replace :-
profile = webdriver.FirefoxProfile()
With :-
profile = webdriver.FirefoxOptions()
and then try, maybe it will fix your issue.
Ye it just worked. Thank you so much! In my understanding, it is just a version error right?
Inside config.py from utils/config.py :-
replace :-
profile = webdriver.FirefoxProfile()
With :-
profile = webdriver.FirefoxOptions()
and then try, maybe it will fix your issue.
Also I got this:
Traceback (most recent call last):
File "/root/EagleEye/eagle-eye.py", line 229, in
I honestly gave up on this repo. There have been soo many bugs and errors, they occur in endless loop even after you resolve them.
Somebody fork this repo and rewrite in golang or rust!
Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/common/driver_finder.py", line 38, in get_path path = SeleniumManager().driver_location(options) if path is None else path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/common/selenium_manager.py", line 87, in driver_location browser = options.capabilities["browserName"] ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'FirefoxProfile' object has no attribute 'capabilities'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/EagleEye/eagle-eye.py", line 229, in
main(skipFB=args.skipfb, FBUrls=[], jsonRep=jsonRepFile, dockerMode=aDocker, dockerName=aName)
File "/root/EagleEye/eagle-eye.py", line 99, in main
f.grabData()
File "/root/EagleEye/grabber/facebook.py", line 16, in grabData
driver = cfg.getWebDriver()
^^^^^^^^^^^^^^^^^^
File "/root/EagleEye/utils/config.py", line 45, in getWebDriver
return webdriver.Firefox(profile)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/firefox/webdriver.py", line 59, in init
self.service.path = DriverFinder.get_path(self.service, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/common/driver_finder.py", line 40, in get_path
msg = f"Unable to obtain driver for {options.capabilities['browserName']} using Selenium Manager."
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FirefoxProfile' object has no attribute 'capabilities'