Open UnixCro opened 3 years ago
I haven't tried it on macOS operating system.
Could you try the instructions on the link below? https://stackoverflow.com/a/31149093/10636297
Yeah, so I tried this again
Unfortunately it doesn't seem to work anyway, there must be a problem with selenium or the Python version is not complete
pip3 install selenium
Requirement already satisfied: selenium in /usr/local/lib/python3.9/site-packages (3.141.0)
Requirement already satisfied: urllib3 in /usr/local/lib/python3.9/site-packages (from selenium) (1.25.3)
Do you have any idea?
Now I've found the bug.
I looked where pip3 is located, it is located under/ usr / local
, where Homebrew installs its packages by default. I deleted pip3 and used / usr / bin / pip3
from macOS and thus installed both the requirements.txt and selenium with the parameter --user and it worked.
Instagram bot and author information is displayed, when I entered my username and password, the following message unfortunately came up
[-] Error during user login: 'Instagram' object has no attribute 'driver'
There was also something else
our username >> [-] An error occurred during the browser initialization process:Message: 'C:\geckodriver.exe' executable needs to be in PATH.
C: \
Is only for Windows and unfortunately has nothing to do with macOS
Now I've found the bug. I looked where pip3 is located, it is located under
/ usr / local
, where Homebrew installs its packages by default. I deleted pip3 and used/ usr / bin / pip3
from macOS and thus installed both the requirements.txt and selenium with the parameter --user and it worked.Instagram bot and author information is displayed, when I entered my username and password, the following message unfortunately came up
[-] Error during user login: 'Instagram' object has no attribute 'driver'
There was also something else
our username >> [-] An error occurred during the browser initialization process:Message: 'C:\geckodriver.exe' executable needs to be in PATH.
C: \
Is only for Windows and unfortunately has nothing to do with macOS
Because I ran it in Windows operating system by default.In the error message, it states that the configuration of the geckodriver file is incorrect.
For Mac operating system, you must download the geckodriver software from here and specify the geckodriver file path in the config.json settings file.
The geckodriver file path is defined here in config.json.
macOS Catalina 10.15.7