Error Message: src.scraper.StuckInGmapsException #97
Replies: 9 comments 3 replies
-
Please follow these Steps. Clone the Magic 🧙♀:
Install Dependencies 📦:
Let's Roll 😎:
And Run the following command to update packages:
Incase it occurs again, Let me know. |
Beta Was this translation helpful? Give feedback.
-
Okay I posted wrong instructions. Kindly follow these steps: Run the following command to update packages:
Clone the Magic 🧙♀:
Install Dependencies 📦:
Let's Roll 😎:
And Let me know, if it occurs again. Also attach error_log zip. |
Beta Was this translation helpful? Give feedback.
-
Windows 11 it's a fresh out of the box mini pc
…On Tue, Jan 9, 2024, 12:44 PM Chetan Jain ***@***.***> wrote:
Your OS?
—
Reply to this email directly, view it on GitHub
<#97 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEVJZO6UV3MUCGMFWSQKJFTYNV6ZPAVCNFSM6AAAAABBSI4OEOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DANRZHE2DS>
.
You are receiving this because you authored the thread.Message ID:
<omkarcloud/google-maps-scraper/repo-discussions/97/comments/8069949@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Also running into this issue. Seems like the scraper is getting stuck on the first page of results for some queries because for the queries where this happened, I only got 20 results even though doing the same search manually results in 50+. |
Beta Was this translation helpful? Give feedback.
-
@brandonlarue00, could you please open scraper.py, DELETE the line starting with block_resources on line 196, and let me know if the issue occurs again? I've highlighted the line in the image below. |
Beta Was this translation helpful? Give feedback.
-
@brandonlarue00 Did it work? |
Beta Was this translation helpful? Give feedback.
-
I've been running the script all day and I see that same error many times in my console. Has anyone found a solution? I'm on a Mac M1 |
Beta Was this translation helpful? Give feedback.
-
I just tried the new version, to my surprise, after updating and running, it found an error on line 208 of the scraper.py file, it turns out that it is a duplicate "reuse_driver=True" I've been testing for a while and I just got the first error... in the virtual machine with Windows 11, this doesn't happen to me ######################## Traceback (most recent call last): ######################## |
Beta Was this translation helpful? Give feedback.
-
Thank you, @Jer0, for the suggestion. Also, I'm unable to reproduce the issue on my PC, so I'd like to suggest a few potential solutions for you to try one after another:
from botasaurus.create_stealth_driver import create_stealth_driver
@browser(
create_driver=create_stealth_driver(
start_url=None,
),
user_agent=bt.UserAgent.REAL,
window_size=bt.WindowSize.REAL,
reuse_driver=True,
keep_drivers_alive=True,
lang=get_lang,
close_on_crash=True,
max_retry = 3,
headless=False, # Make Non Headless
output=None,
)
|
Beta Was this translation helpful? Give feedback.
-
I am receiving an error message that says google maps is stuck in scrollng as well as this:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/botasaurus/decorators.py", line 375, in run_task
result = func(driver, data)
^^^^^^^^^^^^^^^^^^
File "/workspace/google-maps-scraper/src/scraper.py", line 319, in scrape_places
raise e
File "/workspace/google-maps-scraper/src/scraper.py", line 312, in scrape_places
retry_if_is_error(put_links, [StaleElementReferenceException], STALE_RETRIES, raise_exception=False
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/botasaurus/utils.py", line 84, in retry_if_is_error
raise e
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/botasaurus/utils.py", line 77, in retry_if_is_error
created_result = func()
^^^^^^
File "/workspace/google-maps-scraper/src/scraper.py", line 276, in put_links
raise StuckInGmapsException()
src.scraper.StuckInGmapsException
Beta Was this translation helpful? Give feedback.
All reactions