Skip to content

bwbwbwbw/ingress-exporter

Repository files navigation

ingress-exporter

Export all portals, links, fields and system broadcasts in a specific area.

SEEKING FOR MAINTAINER

I'm busy now since I'm an undergraduate student. Even I don't have much time to open Ingress every week :-(

It would be fantastic if anyone could help maintain this project, especially in reverse engineering & bypassing the botguard mechanism (#11).

Thanks!

KNOWN ISSUES

The project is currently broken because of the botguard.

Requirement

Node.js, MongoDB

Install

npm install
npm install -g grunt-cli
grunt

Upgrade Note (Aug 15, 2014)

The latest ingress-exporter uses esprima to parse and generate AST for JavaScript script from ingress.com/intel, so you need to run npm install again if you are upgrading from older versions.

Usage

Config

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.

How to generate polygon data via IITC drawtool

  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.

Example

Request all portals and details (resonators, mods, owner, ...)

node build/app.js --portals --new

Request all portals without details

node build/app.js --portals --detail false --new

Request public messages

node build/app.js --broadcasts

Request faction messages

node build/app.js --faction

Export all portals to csv file with title and image

node build/app.js --export -tI --output output.csv --detect false

Trace a player's activities based on database and output to csv file

node build/app.js --trace --player Vivian --detect false

Search farms based on database and output to json file

node build/app.js --farm --output farm.json --detect false

Options

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
--time   -T          Include captured time (if available)
--owner  -o          Include owner (if available)
--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)

License

The MIT License

About

Export all portals, links, fields and system broadcasts in a specific area.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published