Closed shafe123 closed 1 year ago
In lib\gmaps.py, I surrounded lines 79-129 with a try/except block, which is a bandaid for now. If I get some time I'll take a closer look and see if I can help out. My initial guess is that the div.section-scrollbox
does not exist on the page anymore.
Well it just so happens that I couldn't get it out of my head. I reworked the gmaps file so that it finds the appropriate elements now. It works by searching for the span that contains "review" and "rating", so I'm not sure if it will work in languages other than English or not. I've attached the diff below.
Hello, I'm looking at this right now.
Fixed in the latest commit ! Thank you for your patch @shafe123, it works very well ! I also included you as co-author of the commit :) And don't worry about the language when searching for "review" and "rating", I force the english language by adding "hl=en" to the maps reviews url.
Reopening this issue since a user on discord had another error after the patch
Traceback (most recent call last):
File "/home/kali/Desktop/GHunt/ghunt.py", line 38, in
I am experiencing this error, I believe whenever the tool reaches the scraping of google maps reviews part and when there are google map reviews in the particular account, the error message above will appear.
I managed to find a temporary workaround after chatting with @mxrch (thank you for that) and get the google reviews showing without any errors!
You will require python 3.10/3.11
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt install python3.10 -y
python3.10 -m venv .venv (create an environment for python3.10)
source .venv/bin/activate
python3 -m pip install -r requirements.txt --upgrade
git checkout refactor (Make sure you have ghunt-main downloaded first)
git pull
python main.py -h (View the user manual first)
python main.py login (Grab the cookie first)
python main.py address <email_address>
Done 👍
Seems like it freeze at 85 reviews for me
Describe the bug GHunt encounters a Selenium TimeoutException when trying to pull review contributions from Google Maps.
To Reproduce Steps to reproduce the behavior:
System (please complete the following information):
Additional context
I can provide my personal email address that I used to test privately.