Created
August 8, 2018 23:37
-
-
Save ptrcnull/0a99074822595b549fef28823fafe374 to your computer and use it in GitHub Desktop.
pokemongomap.info scrapper
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:(function()%7Bvar%20l%3DObject.values(markers).map(m%3D%3E%60%24%7Bm.options.locmarkername%7D%20-%20%24%7Bm._latlng.lat.toFixed(5)%7D%2C%24%7Bm._latlng.lng.toFixed(5)%7D%60).join('%5Cn')%3Bvar%20e%3Ddocument.createEvent('MouseEvents')%3Be.initMouseEvent('click'%2Ctrue%2Cfalse%2Cself%2C0%2C0%2C0%2C0%2C0%2Cfalse%2Cfalse%2Cfalse%2Cfalse%2C0%2Cnull)%3Bvar%20a%3Ddocument.createElement('a')%3Ba.download%3D'locations.txt'%3Ba.href%3D'data%3Atext%2Fplain%3Bcharset%3Dutf-8%2C'%2BencodeURIComponent(l)%3Ba.dispatchEvent(e)%7D)() |
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
const markerList = Object.values(markers).map(m => `${m.options.locmarkername} - ${m._latlng.lat.toFixed(5)},${m._latlng.lng.toFixed(5)}`).join('\n'); | |
var ev = document.createEvent('MouseEvents'); | |
ev.initMouseEvent('click', true, false, self, 0, 0, 0, 0, 0, false, false, false, false, 0, null); | |
var a = document.createElement('a'); | |
a.download = 'locations.txt'; | |
a.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent(markerList); | |
a.dispatchEvent(ev); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment