lyyka / google-maps-businesses-scraper

Built with Python running Selenium, this app allows you to scrape places info from the google maps search results
MIT License
64 stars 25 forks source link

Excel file only shows headers, but the lines are empty #5

Open niklas-b opened 3 years ago

niklas-b commented 3 years ago

Thanks for making this code available! This is exactly what I need.

For whatever reason my Excel file results in a blank sheet, except for adding the headlines.

The only potential issue I've been able to identify is a pop-up dialog that quickly shows up and just as quickly disappears, even before I have any chance to read it. I'm using a Mac if that's helpful for fault tracing...

Does anyone have any idea what may be causing this?

Grateful for any help. Thanks!

olishingerz commented 3 years ago

Did you manage to fix this issue? It doesn't seem to start the writing process

niklas-b commented 3 years ago

No unfortunately I wasn't able to figure it out, but I'm a pretty novice Python coder so that might be why.

I did however stumble on another solution. It's hosted on apify.com and requires no coding (https://blog.apify.com/how-to-scrape-data-from-google-maps/). It works very well, but can get rather pricey if you want to scrape a lot of data. So I'd prefer to find another solution.

Do you have any idea how to fix this code?

olishingerz commented 3 years ago

Are you able to contact me on discord? my username is olishingerz#5879

niklas-b commented 3 years ago

Certainly, I just sent you a friend request on Discord.

MKMMM commented 3 years ago

Hey all, I ran into the same issue.

I've noticed that variable BOX_CLASS = "section-result-content" in scraper.py comes up empty for me. It seems that it's the class name for the boxes with info, but I'm not sure if that value is as it should be or not. However it appears that it's the reason the code does not go into the loop, and ends up with an empty file.

Zims commented 3 years ago

section-result-content

I figured out the same. Now I'm trying to find how is the class named now. Hopefully, this will let the code proceed but I think the whole scraper will need rewriting.

ghost commented 2 years ago

Any update on this before I jump in the code?

lyyka commented 2 years ago

Unfortunately, I did not have the time to dive into it myself. You are free to do so tho :)

sakshamahluwalia commented 1 year ago

Hi the css-selectors used as of Feb 2, 2022 are out of date. You will need to update the css-selectors in scraper.py and it should start working

vanessavalentine commented 1 year ago

Hye, I t

Hi the css-selectors used as of Feb 2, 2022 are out of date. You will need to update the css-selectors in scraper.py and it should start working

Hey, I did try and update the css-selector. I changed all the findelement(BY., ""). However, it still result in an empty xlsx file. Is there any other problem in the repo?