Please share a Crawlee template that scrapes Google Maps
Thank you.
8 Replies
exotic-emerald•3y 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-turquoiseOP•3y 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•3y 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#installationApify 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-turquoiseOP•3y 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•3y 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-turquoiseOP•3y 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•3y 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
installedunwilling-turquoiseOP•3y ago
Ok thank you