omkarcloud / botasaurus

The All in One Framework to build Awesome Scrapers.
https://www.omkar.cloud/botasaurus/
MIT License
1.35k stars 123 forks source link

Fresh installation + first example errors out with "Unable to connect to browser" #123

Closed ramilushev closed 4 months ago

ramilushev commented 4 months ago

Thanks for this project, great work!

Trying to give it a spin, I made a fresh project, installed the latest version of botasaurus, and copied the very first example into .py file, then ran it with python scraper.py.

The error reads as follows:

botasaurus_driver.exceptions.DriverException: 
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.

I can see the chrome icon popping up briefly and then closing.

OS: MacOS

There are no error logs to provide...

ramilushev commented 4 months ago

Forgot to mention that testing the older "working" version 4.0.14 seems to be able to navigate to the page, but fails to find get_text as a method.

Chetan11-dev commented 4 months ago
ramilushev commented 4 months ago

Tried it with latest stable version 3.12.3, still the same error occurs

Chetan11-dev commented 4 months ago

@ramilushev Please run the following commands:

python -m pip install bota botasaurus botasaurus_api botasaurus_driver bota botasaurus-proxy-authentication botasaurus_server --upgrade

If still occurs, kindly let me know

MrSpyCat commented 4 months ago

i was getting the same error when i was trying to test it on linux Ubuntu desktop

Chetan11-dev commented 4 months ago

I think I got it, Can we do a Google Meet, I guess I will be able to resolve it easily then.

Chetan11-dev commented 4 months ago

Please run the following commands again:

python -m pip install bota botasaurus botasaurus_api botasaurus_driver bota botasaurus-proxy-authentication botasaurus_server --upgrade

If still occurs, kindly let me know