Giter Site home page Giter Site logo

ingress's Introduction

Ingress Intel for Your City

Rules You Should Follow When Using this Project

  • Only collect one city on one server except the Ingress actions in collecting area are very few.
  • Request once or less per minute (once every 5 or 10 minutes may satisfy small citys)
  • Do not show old actions info for any agents (like data 90 days ago)

Requirements

  • Unix/Linux (Windows is strongly not recommended)
  • Python 3.4+
  • Django 1.7+
  • requests

Install Python 3.4 on Ubuntu

Ubuntu 14.04 already have Python 3.4.0 in it officially. But if needed, can be built from source

sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev libncursesw5-dev libreadline-gplv2-dev libgdbm-dev libsqlite3-dev tk-dev python-dev autoconf

And then:

wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz && \
tar xf ./Python-3.4.1.tar.xz && \
cd ./Python-3.4.1

./configure
make && sudo make install

Setup Django

See Setup Django for Python 3 for details.

Usage

  1. Create a file called settings_local.py under the same directory as settings.py.

  2. Login your Ingress account (may be banned :-( ) in Google Chrome browser. Use Chrome's Inspect Element to find out the Request Headers of request POST /r/getPlexts, which will needed in step 3.

  3. Edit the following values in settings_local.py:

INGRESS_INTEL_COOKIE = ""
INGRESS_INTEL_CSRF_TOKEN = ""
INGRESS_INTEL_PAYLOAD_V = ""

and update the region range(You can find the Lat/Lng with Google Map ):

MIN_LAT = 41636215
MAX_LAT = 43761852
MIN_LNG = 141825375
MAX_LNG = 146483578
  1. Then we're ready to go (every time you run it, please make sure remove ~/.ingress/need_update.txt if it exists):

python3 manage.py test_collect

If you see some JSON-like outputs, then we are succeed. Otherwise, Please do step 2 and step 3 again.

  1. Database migrations
python3.4 manage.py migrate
  1. Collect for real
python3.4 manage.py collect
  1. Run Server and see.
python3.4 manage.py runserver 8080

Open browser to see http://127.0.0.1:8080/

  1. Use python3.4 manage.py help to see other ingress commands.

Existing Sites

Ingress Beijing China - http://ingress.mitnk.com

ingress's People

Contributors

mitnk avatar hugo-aa avatar

Watchers

James Cloos avatar Afio 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.