Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort by most relevant doesn't work #61

Open
AerialAceX opened this issue Nov 12, 2024 · 0 comments
Open

Sort by most relevant doesn't work #61

AerialAceX opened this issue Nov 12, 2024 · 0 comments

Comments

@AerialAceX
Copy link

python scraper.py --source --sort_by most_relevant

Running the script while sorting by most relevant returns the following:
(sorting by newest, highest score and lowest score works normally)

Traceback (most recent call last):
File "%BASE_DIR%\googlemaps-scraper\scraper.py", line 63, in
reviews = scraper.get_reviews(n)
^^^^^^^^^^^^^^^^^^^^^^
File "%BASE_DIR%\googlemaps-scraper\googlemaps.py", line 132, in get_reviews
self.__scroll()
File "%BASE_DIR%\googlemaps-scraper\googlemaps.py", line 340, in __scroll
scrollable_div = self.driver.find_element(By.CSS_SELECTOR,'div.m6QErb.DxyBCb.kA9KIf.dS8AEf')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%BASE_DIR%\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 741, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%BASE_DIR%\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "%BASE_DIR%\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.m6QErb.DxyBCb.kA9KIf.dS8AEf"}
(Session info: chrome=130.0.6723.117); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
GetHandleVerifier [0x00007FF74FD238A5+3004357]
(No symbol) [0x00007FF74F9B9970]
(No symbol) [0x00007FF74F86582A]
(No symbol) [0x00007FF74F8B5B8E]
(No symbol) [0x00007FF74F8B5E7C]
(No symbol) [0x00007FF74F8FEC27]
(No symbol) [0x00007FF74F8DBC1F]
(No symbol) [0x00007FF74F8FBA4C]
(No symbol) [0x00007FF74F8DB983]
(No symbol) [0x00007FF74F8A7628]
(No symbol) [0x00007FF74F8A8791]
GetHandleVerifier [0x00007FF74FD4A00D+3161901]
GetHandleVerifier [0x00007FF74FD9E060+3506048]
GetHandleVerifier [0x00007FF74FD9400D+3465005]
GetHandleVerifier [0x00007FF74FB10EEB+830987]
(No symbol) [0x00007FF74F9C467F]
(No symbol) [0x00007FF74F9C09D4]
(No symbol) [0x00007FF74F9C0B6D]
(No symbol) [0x00007FF74F9B0149]
BaseThreadInitThunk [0x00007FFF1CFC7374+20]
RtlUserThreadStart [0x00007FFF1EBBCC91+33]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant