Please share a Crawlee template that scrapes Google Maps

Thank you.
8 Replies
exotic-emerald
exotic-emerald3y ago
What do you mean by template? You can use one of our actors from the Store to scrape Google Maps: https://apify.com/store?search=Google+Maps
unwilling-turquoise
unwilling-turquoiseOP3y ago
Thanks for the response, I am familiar with Google Maps scraper, I want to create a Crawlee project on my PC that uses a code similar that does something similar to Google Maps scraper with rotating proxies, By' template' I mean the Main.js file that does the work inside the Crawlee project
metropolitan-bronze
metropolitan-bronze3y ago
you could use apify-cli https://sdk.apify.com/docs/guides/apify-platform#log-in-with-cli and create a project from template with apify create - more info here: https://docs.apify.com/cli#installation
Apify Platform | Apify SDK
Apify is a platform built to serve large-scale and high-performance web scraping
Apify
Command-line interface · Apify Documentation
Create new actors from your computer's command line. Run actors locally or deploy them to the Apify platform. View the Apify CLI's command reference.
unwilling-turquoise
unwilling-turquoiseOP3y ago
Thank you, by Lukas advise I cloned this repository: https://github.com/apify-projects/store-crawler-google-places I think this is what I needed, now I just need some advise on how to use it from the code. Do you know where should I insert a url/array of urls/keyword/location etc... and how to run it, in order to get results similar to Apify.com from my PC?
exotic-emerald
exotic-emerald3y ago
You need INPUT value. Read this article: https://docs.apify.com/actors/running/input It should be simple JSON object. Check example from the docs (JSON Example tab): https://apify.com/compass/crawler-google-places/input-schema
unwilling-turquoise
unwilling-turquoiseOP3y ago
When I run npm start, I get this: 'ts-node-esm' is not recognized as an internal or external command, operable program or batch file. Do you know what should I do?
metropolitan-bronze
metropolitan-bronze3y ago
Please check the Crawlee Quick Start guide: https://crawlee.dev/docs/quick-start, you could also check the guides section https://crawlee.dev/docs/guides and also check the respective Apify guides: https://sdk.apify.com/docs/guides - most of of your questions should be answered. But it seems you don't have ts-node-esm installed
unwilling-turquoise
unwilling-turquoiseOP3y ago
Ok thank you

Did you find this page helpful?