Giter VIP home page Giter VIP logo

ingress-exporter's Introduction

ingress-exporter

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

Notice

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.

Requirement

Node.js, MongoDB

Install

npm install
npm install -g grunt-cli
grunt

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)

Warning

Using this script is likely to be considered against the Ingress Terms of Service. Any use is at your own risk.

License

The MIT License

ingress-exporter's People

Contributors

breezewish avatar eliecharra avatar xxinvictus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.