๐ Get 120 Leads in 10 Minutes! ๐ค
If you are not a techy person or don't know how to use git. You can follow this video to make bot run.
1๏ธโฃ Clone the Magic ๐งโโ๏ธ:
git clone https://github.com/omkarcloud/google-maps-scraper
cd google-maps-scraper
2๏ธโฃ Install Dependencies ๐ฆ:
python -m pip install -r requirements.txt
3๏ธโฃ Let the Rain of Google Map Leads Begin ๐:
python main.py
Once the scraping process is complete, you can find your leads in the output
directory.
Watch this video to see the bot in action!
A: Open the file src/config.py
and comment out the line that sets the max_results
parameter.
By doing so, you can scrape all the search results from Google Maps. For example, to scrape all restaurants in Delhi, modify the code as follows:
queries = [
{
"keyword": "restaurants in delhi",
# "max_results" : 5,
},
]
โ I want to scrape search results for a specific business in a particular location. How can I achieve that?
A: Open the file src/config.py
and update the keyword
with your desired search query.
For example, if you want to scrape data about stupas in Kathmandu ๐ณ๐ต, modify the code as follows:
queries = [
{
"keyword": "stupas in kathmandu",
},
]
A: Absolutely! Open the file src/config.py
and add as many queries as you like.
For example, if you want to scrape restaurants in both Delhi ๐ and Bangalore ๐จโ๐ป, use the following code:
queries = [
{
"keyword": "restaurants in delhi",
"max_results": 5,
},
{
"keyword": "restaurants in bangalore",
"max_results": 5,
}
]
On average, each Google Maps search gives 120 listings. It takes approximately 10 minutes to scrape these 120 listings.
To calculate the number of hours it takes to scrape "n" searches, you can google search this formula substituting n
with number of searches you want to conduct:
n * 10 minutes in hour
For example, if you want to scrape 10 google map queries or 1200 listings, it will take around 1.6 hours.
A: Most people scrape Google Maps Listings to sell things!
For example, you can search for restaurants in Amritsar and pitch your web development services to them.
You can also find real estate listings in Delhi and promote your exceptional real estate software.
Google Maps is seriously a great platform to find B2B customers to sell things to!
โ The code looks well-structured and organized. Most Selenium codebases are messy. How did you do it?
A: I use the Bose Framework, a Bot Development Framework that greatly simplifies the process of creating bots.
The Google Maps Scraper uses Bose to:
- Enable running the bot multiple times
- Maintain code structure
- Save the data as JSON and CSV
- Incorporate anti-bot detection features
- Utilize the enhanced Selenium Driver to reduce code.
You can see scrape_google_maps_links_task.py
to understand the simplicity Bose Brings.
Without Bose Framework, it would be 2x more harder to make this Google Maps Scraper.
Explore the Bose Framework here.
Star โญ the repository.
Your star will send me a Telegram Notification, and it will bring a smile to my face :)
A: I am a professional scraper who scrapes for a living. Let's discuss your requirements further! Feel free to reach out to me at [email protected].
PS: If you're interested in getting an enhanced version of this scraper capable of extracting 8x more data in the same time, you can reach out to me at [email protected]. The cost is $75, and it will save you 8x more time.