Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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