Skip to content

Instantly share code, notes, and snippets.

@slotix
Created April 19, 2021 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slotix/c37de29baa12ec9d5805d8e8e8e25b92 to your computer and use it in GitHub Desktop.
Save slotix/c37de29baa12ec9d5805d8e8e8e25b92 to your computer and use it in GitHub Desktop.
DFK Payload for extracting single place data from google maps.
{
"fields": [
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "Title",
"selector": "div.jhZ71jGpxeA__section-hero-header-title-description > div:nth-child(1) > h1 > span:nth-child(1)"
},
{
"attrs": [
"src"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "selector1",
"selector": "div.section-hero-header-image-hero-container.collapsible-hero-image > button > img"
},
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "Address",
"selector": "div:nth-child(1) > button > div.ugiz4pqJLAG__content > div.ugiz4pqJLAG__text > div.ugiz4pqJLAG__primary-text.gm2-body-2"
},
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "URL",
"selector": "div:nth-child(3) > button > div.ugiz4pqJLAG__content > div.ugiz4pqJLAG__text.ugiz4pqJLAG__underline_on_hover > div.ugiz4pqJLAG__primary-text.gm2-body-2"
},
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "Phone",
"selector": "div:nth-child(4) > button > div.ugiz4pqJLAG__content > div.ugiz4pqJLAG__text > div.ugiz4pqJLAG__primary-text.gm2-body-2"
},
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "PlusCode",
"selector": "div:nth-child(5) > button > div.ugiz4pqJLAG__content > div.ugiz4pqJLAG__text > div.ugiz4pqJLAG__primary-text.gm2-body-2"
},
{
"attrs": [
"text"
],
"filters": [
{
"name": "trim",
"param": ""
}
],
"name": "Reviews",
"selector": "span.lCHJiM2nCQs__reviews-tap-area.lCHJiM2nCQs__reviews-tap-area-enabled > span:nth-child(1) > button"
}
],
"format": "json",
"name": "Google Maps",
"payloadmd5": "",
"request": {
"actions": [
{
"click": {
"selector": "form > div.lssxud > div > button, #pane > div > div.widget-pane-content.mapsConsumerUiCommonScrollable__scrollable-y > div > div > div.section-layout.section-layout-flex-horizontal"
}
},
{
"waitVisible": {
"selector": "#pane > div > div.widget-pane-content.mapsConsumerUiCommonScrollable__scrollable-y > div > div"
}
}
],
"ignoreHTTPStatusErrCodes": false,
"proxy": "country-any",
"type": "chrome",
"url": "https://www.google.com/maps/search/Edeka+Hauptstr+23+13158+Berlin/"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment