1
0 Comments

How can I (easily) scrape data from Google Places API?

TL;DR
I want to scrape data from Google Places API with a text search, ex.: "tattoos in California". This would give me a list of restaurants in California but now let's assume that "California" would be replaced (in a loop) by each state in the US.

Still not sure how I can scrape such an amount of data in an "easy" way and store it in a database for frontend usage.


What I want to build:
A directory of tattoo shops in the US.

Current state:
I already have a directory that lists tattoo shops from states and cities of the US but it's grabbing data directly from Google Places API - which is super expensive given the traffic I have 😅

My current problem:
I've tried to make a PHP script that would request the places details and store them in Supabase but I'm struggling because of PHP execution time and it doesn't seem like the proper way to scrape the data.

I'm quite lost at this stage on how I could scrape data more effortlessly. So I would appreciate any tips from someone who as experience with this matter.

Really appreciate all the help and happy to chat about this.

Thanks,
Paulo


PS.: I'm also looking for a co-founder for the same project, check it here: https://www.indiehackers.com/post/looking-for-ai-tech-co-founder-3a6bf3724e

on December 4, 2022