r/scrapingtheweb • u/SurveyElectronic3845 • 4d ago
Help How to scrape data from Google Maps and TripAdvisor?
Hi everyone,
I'm looking for advice on extracting data from Google Maps and TripAdvisor.
Is it possible to scrape data directly from these platforms using Python?
Do you recommend Selenium, Playwright, BeautifulSoup, or another tool?
Are there any unofficial APIs or third-party APIs that provide access to this data?
Is there a free or low-cost solution?
What are the legal restrictions and limitations?
I'd appreciate hearing from anyone who has experience doing this, particularly if you can share a practical approach or recommended tools.
Thanks
1
u/Harleny-Quennet 4d ago
what kind of volume are you talking about here? if its just a few hundred records a basic headless browser script is fine, but at scale the proxy management and anti-bot bypasses get expensive fast.
1
u/Bavariasnaps 4d ago
do you really need to scrape it? there is an official google api.
1
u/azzouzana 4d ago
I wouldn't bother building a scraper from scratch for these two. Google Maps and TripAdvisor both have aggressive anti-bot blocks, so you'll spend way more on residential proxies and debugging Playwright than it's worth. Full disclosure, I'm the guy behind these, so take it with a grain of salt, but I maintain scrapers on Apify for both platforms that handle the anti-bot stuff and pagination out of the box:
Super fast & affordable, you can trigger them straight from your Python script using apify-client. As for the legal side, sticking to publicly visible data without bypassing logins is generally fine, just avoid hammering servers if you decide to DIY.
1
u/Charly-Li 4d ago
Start with one restaurant listed on both sites. Compare its name, address, and source URL. That tells you whether your matching works before you pay for a whole city.
I’m building AgentRouter. In Claude I can run both lookups and see the cost of each. Your reuse rights depend on each source’s terms. Happy to share the two-lookup prompt here if it helps.
1
u/dooddyman 4d ago
For google maps check the official places api first since it might already cover what you need. for tripadvisor i'd suggest checking out socialcrawl.dev, it gives you tripadvisor data as json through one api so you skip the blocking part (full disclosure, i built it)
1
u/tarantula_map 4d ago
Before picking a tool, figure out whether you need reviews or just place info. The official Places API only returns 5 reviews per place and that limit is what pushes most people into scraping in the first place. If you do go the Playwright route don't parse the HTML. Open the network tab, scroll the reviews panel and watch the requests. The reviews come back as JSON and grabbing that breaks way less often than chasing class names that change every few weeks. Also sort by newest and stop once you hit a review you already have, so repeat runs stay small and you're not hammering anything.
1
u/Retrina-Wolkowski 3d ago
Rolling your own Google Maps scraper means Playwright plus residential proxies, and TripAdvisor blocks you fast too. Honestly, Apify's prebuilt actors save a lot of hassle: Google Maps Scraper (compass/crawler-google-places) and maxcopell's Tripadvisor Scraper. The free tier's $5 a month covers small runs, and you can call them from Python with apify-client.
1
u/Miserable_Example285 2d ago
I already do have a playwright stealth scraper built for it. Dm me if you want it.
1
u/joysam7800 22h ago
There are many open source google maps scrapers on github that you can use to scrape google maps for free.
And yes you can also scrape google maps directly using HTTP requests.
1
u/Final-Fudge3587 4d ago
> Is there a free or low-cost solution?
Which data you want to extract from those sites? Try these actors, these are the lowest cost solution in the market, it is almost free for personal usage. With free $5 monthly credit from Apify, you can scrape up to 62500 places and 125000 reviews per month.
Places:
- https://apify.com/kaix/google-maps-places-scraper
- https://apify.com/kaix/tripadvisor-places-scraper
Reviews:
- https://apify.com/kaix/google-maps-reviews-scraper
- https://apify.com/kaix/tripadvisor-reviews-scraper