Scrape information about places from Google Maps. Gives you extra information that you can't get using the Google Places API. Récupérez des informations sur des lieux à partir de Google Maps. Vous obtenez ainsi des informations supplémentaires que vous ne pouvez pas obtenir à l'aide de l'API Google Places. Acteur Apify qui semble être celui utilisé par Compass. https://www.apify.com/drobnikj/crawler-google-places https://apify.com/compass/crawler-google-places
Go to file
2019-01-10 15:20:00 +01:00
src Added input flag for regular testing 2019-01-10 15:08:27 +01:00
.eslintrc ESLinting 2018-11-20 15:41:20 +01:00
.gitignore init repository 2018-11-19 11:43:36 +01:00
apify.json Moved crawler for enqueue places to main crawler 2018-12-10 15:27:34 +01:00
Dockerfile Updated docker file 2018-12-10 15:54:27 +01:00
INPUT_SCHEMA.json Updated input schema 2019-01-04 20:01:05 +01:00
package-lock.json Added google check 2019-01-08 11:39:36 +01:00
package.json Added google check 2019-01-08 11:39:36 +01:00
README.md Update README.md 2019-01-10 15:20:00 +01:00

Crawler Google Places

Get data from Google Places, which official Google Maps Places API does not provide.

Why?

You can use official Google Maps Places API, it is better way for the most use cases.

Unlike Google Maps Places API you can get from crawler:

  • Popular place times histogram (There is no data for that in official API)
  • Place reviews (you can get up to 5 reviews from official API)
  • Place photos (you can can up to 10 photos from official API)

INPUT

Follow guide on actor detail page to see how it works.

Example input:

{
  "searchString": "pubs near prague",
  "lat": "50.0860729",
  "lng": "14.4135326",
  "zoom": 10
}

On this input actor searches places on this start url: https://www.google.com/maps/search/pubs+near+prague/@50.0860729,14.4135326,10z

OUTPUT

Once the actor finishes, it outputs results to actor default dataset.

Example results item:

{
  "title": "Scotiabank",
  "totalScore": 3.7,
  "categoryName": "Bank",
  "address": "201 Bishopsgate, London EC2M 3NS, UK",
  "plusCode": "GWCC+75 City of London, London, UK",
  "popularTimesHistogram": {
    "Su": [],
    "Mo": [
      {
        "hour": 6,
        "occupancyPercent": 0
      },
      {
        "hour": 7,
        "occupancyPercent": 0
      },
      {
        "hour": 8,
        "occupancyPercent": 0
      },
      {
        "hour": 9,
        "occupancyPercent": 75
      },
      {
        "hour": 10,
        "occupancyPercent": 73
      },
      {
        "hour": 11,
        "occupancyPercent": 60
      },
      {
        "hour": 12,
        "occupancyPercent": 57
      },
      {
        "hour": 13,
        "occupancyPercent": 56
      },
      {
        "hour": 14,
        "occupancyPercent": 56
      },
      {
        "hour": 15,
        "occupancyPercent": 57
      },
      {
        "hour": 16,
        "occupancyPercent": 50
      },
      {
        "hour": 17,
        "occupancyPercent": 33
      },
      {
        "hour": 18,
        "occupancyPercent": 14
      },
      {
        "hour": 19,
        "occupancyPercent": 4
      },
      {
        "hour": 20,
        "occupancyPercent": 1
      },
      {
        "hour": 21,
        "occupancyPercent": 0
      },
      {
        "hour": 22,
        "occupancyPercent": 0
      },
      {
        "hour": 23,
        "occupancyPercent": 0
      }
    ],
    ...
  },
  "reviews": [
    {
      "name": "NELLORE BALA NAVEEN REDDY",
      "text": "nice  bank in london",
      "stars": "5 stars",
      "publishAt": "2 months ago",
      "likesCount": "",
      "responseFromOwnerText": ""
    },
    ...
  ],
  "reviewsCount": 6,
  "imageUrls": [
    "https://lh5.googleusercontent.com/p/AF1QipPvm-rzo7_mlLRmctQwDJV6agVGHZMUJYLinU_t=s508-k-no",
    ...
    ],
  "url": "https://www.google.com/maps/place/Scotiabank/@51.5258542,-0.335595,11z/data=!4m8!1m2!2m1!1sbanks+london!3m4!1s0x48761cb181573665:0x5fce6a25f2e99723!8m2!3d51.5206306!4d-0.0795672"
}