-
-
Save r35krag0th/fb63fd103269390029104e4ec22cae5b to your computer and use it in GitHub Desktop.
Pokemongomap.info scraper for pidgey bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var markerList = markerList || {}; for (marker in markers) { if (!markerList.hasOwnProperty(markers[marker].options.locmarkerid)) { console.log("Marker added"); markerList[marker] = '"' + markers[marker].options.title.split(': ')[1] + '","' + markers[marker].options.title.split(': ', 2)[0] + '",' + markers[marker]._latlng.lat.toFixed(6) + ',' + markers[marker]._latlng.lng.toFixed(6); } } var markerString = ""; for (marker in markerList) { markerString += "[" + markerList[marker] + "],"; } (function (text) { var node = document.createElement('textarea'); var selection = document.getSelection(); node.textContent = "[" + text + "]"; document.body.appendChild(node); selection.removeAllRanges(); node.select(); document.execCommand('copy'); selection.removeAllRanges(); document.body.removeChild(node); })(markerString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var markerList = markerList || {}; | |
for (marker in markers) { | |
if (!markerList.hasOwnProperty(markers[marker].options.locmarkerid)) { | |
console.log("Marker added"); | |
console.log(marker, markers[marker].options); | |
titleSplit = markers[marker].options.title.split(': ', 2); | |
markerList[marker] = JSON.stringify({ | |
id: markers[marker].options.locmarkerid, | |
name: titleSplit[1], | |
kind: titleSplit[0], | |
lat: markers[marker].options.position[0], | |
lng: markers[marker].options.position[1] | |
}); | |
// '"' + markers[marker].options.title.split(': ')[1] + '","' + markers[marker].options.title.split(': ', 2)[0] + '",' + markers[marker]._latlng.lat.toFixed(6) + ',' + markers[marker]._latlng.lng.toFixed(6); | |
} | |
} | |
var markerString = ""; | |
for (marker in markerList) { | |
markerString += "[" + markerList[marker] + "],"; | |
} | |
(function (text) { | |
var node = document.createElement('textarea'); | |
var selection = document.getSelection(); | |
node.textContent = "[" + text + "]"; | |
document.body.appendChild(node); | |
selection.removeAllRanges(); | |
node.select(); | |
document.execCommand('copy'); | |
selection.removeAllRanges(); | |
document.body.removeChild(node); | |
})(markerString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment