Export all portals, links, fields and system broadcasts in a specific area.
If this project doesn't work (for example, saying that failed to detect munge data), mostly it is because NIA updated their Intel website and broke down this project. Please open an issue and let me know.
Node.js, MongoDB
npm install
npm install -g grunt-cli
grunt
See config.cson.default
for details.
You need to copy and rename to config.cson
first before running.
Remember to execute grunt
after you modifying config.cson
or updating repo.
(1) Install IITC (2) Install Draw Tools plugin of IITC (3) Draw a polygon on the map (your desired requesting region) (4) Open Developer Tools -> Terminal (5) Paste the code below & press ENTER
window.plugin.drawTools.drawnItems.eachLayer(function(layer) {
if (!(layer instanceof L.GeodesicPolygon)) {
return;
}
var latlngs = [];
layer.getLatLngs().forEach(function(p) {
latlngs.push([p.lat, p.lng]);
});
console.log(JSON.stringify(latlngs) + '\n');
});
(6) Copy output to your config.cson
.
Notice: If there are more than 1 polygon on the map, the code will output data of all polygons. Please choose the one your desired.
node build/app.js --portals --new
node build/app.js --portals --detail false --new
node build/app.js --broadcasts
node build/app.js --faction
node build/app.js --export -tI --output output.csv --detect false
node build/app.js --trace --player Vivian --detect false
node build/app.js --farm --output farm.json
node build/app.js
--portals Request portals information
--broadcasts Request public broadcast messages
--faction Request faction messages
--export Export portals (output to stdout)
--trace Trace a player's destroy/deploy/link history (experimental)
--farm Find farms (experimental)
--detect false Don't detect munge data & player info (optional)
Overwrites --detectmunge and --detectplayer
(You may need this when using --export, --trace or --farm)
--detectmunge false Don't detect munge data (optional)
--detectplayer false Don't detect player info (optional)
--cookie COOKIE The cookie to use (overwrite config.cson, optional)
--proxy PROXY_URL HTTP proxy URL (for example, http://127.0.0.1, optional)
Requesting portals (--portals
):
--new -n Start new requests (otherwise continue, optional)
--fast Start new requests based on existing tile data
(overwrite --new, optional)
App will only request tiles that containing portals.
It can effectively improve speed when region is large,
but lose some new approved protals.
--detail false Don't request portals details (faster, optional)
Requesting public/faction (--broadcasts
or --faction
):
--new -n Start new requests (otherwise continue, optional)
--tracedays N Trace history of N days (overwrite config.cson, optional)
Exporting portals (--export
):
--title -t Include title
--latlng -l Include lat & lng
--id -i Include guid
--image -I Include image URI
--output FILE Output to the file instead of stdout (optional)
Tracing player (--trace
):
--player PLAYER The player to trace (case sensitive)
--output FILE Output to the file instead of stdout (optional)
Finding farms (--farm
):
--radius R Minimum distance of portals (unit: m) (default: 500)
--nearby N Minimum nearby portals for a farm (default: 5)
--level LEVEL Minimum level of portals (default: 7)
--team RES|ENL|ALL Farm filter (default: ALL)
--output FILE Output to the file instead of stdout (optional)
Using this script is likely to be considered against the Ingress Terms of Service. Any use is at your own risk.
The MIT License