Closed salmansarwar5102 closed 3 months ago
Kindly Run python -m pip install botasaurus --upgrade
After running the above command this error shows:
Chrome failed to launch. Retrying with additional server options. To add server options by default, include '--server' in your launch command.
Full error in this link: https://paste.ofcode.org/37qagkEBreN6QqR7iAr5a4q
Does "python main.py --server" works? Also, in which system are you running it?
I'm also facing this issue. Using the gitpod space it works but trying to use it with GitHub codespaces I get an error(chrome crashes). Also with docker it crashes. But it works on windows.
Does "python main.py --server" works? Also, in which system are you running it?
no it doesn't work. I am running Windows Subsystem for Linux WSL2
I believe that to get the Google Maps scraper working, we need to add a set of options to Chrome. Could you please open src/scraper.py
and modify the add_arguments
function as shown below? After making these changes, please try running the scraper again.
Original add_arguments
function:
def add_arguments(data, options):
options.add_experimental_option(
"prefs", {
"profile.managed_default_content_settings.images": 2,
# "profile.managed_default_content_settings.stylesheet": 2,
# "profile.managed_default_content_settings.fonts": 2,
}
)
Updated add_arguments
function with additional arguments:
def add_arguments(data, options):
options.add_experimental_option(
"prefs", {
"profile.managed_default_content_settings.images": 2,
# "profile.managed_default_content_settings.stylesheet": 2,
# "profile.managed_default_content_settings.fonts": 2,
}
)
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--headless")
options.add_argument("--disable-gpu")
options.add_argument("--disable-extensions")
options.add_argument("--disable-infobars")
Full error here:
https://paste.ofcode.org/na4EBhXZxUiNpS5sJtuZdJ