Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pboos/ingress-passcode-scraper

Scrapes various sources for ingress passcodes, then attempts to redeem them
https://github.com/pboos/ingress-passcode-scraper

Last synced: about 1 month ago
JSON representation

Scrapes various sources for ingress passcodes, then attempts to redeem them

Awesome Lists containing this project

README

        

# Ingress Passcode Scraper
This is a rewrite of [Patrick Boos'](https://github.com/pboos) [ingress-passcode-redeemer](https://github.com/pboos/ingress-passcode-redeemer).
I tried to make it more configurable and a little more feature-rich.
Much thanks to Patrick for the inspiration and some relevant code snippets
(specifically, automating google login/passcode redemption in casperjs)

## Running
These instructions are for osx/unix-like systems. Sorry, windows folk, you're gonna have to figure it out on your own.

* install [phantomjs](http://phantomjs.org/)
* `cd ingress-passcode-scraper`
* `cp config.sample.json config.json`
* `chmod 600 config.json`
* edit config.json as you see fit
* `npm install`
* `node app`
* ???
* profit!

## Two-factor auth
If you use two-factor authentication with your google account,
you will receive an sms pin from google
when the redeem script successfully logs into your google acount for the first time.
To enter the sms pin, navigate to http://server_address:8080.
To change the default port number, feel free to edit it in lib/phantom-redeem.js.

After successfully authenticating, the you shouldn't have to authenticate again
until you manually sign out of your google account,
or 30 days have passed since you successfully authenticated.

If you want to pre-cache the a cookie file to get started, execute:
`phantomjs --cookies-file=.phantom-cookies.txt lib/phantom-redeem.js [email protected] secret_password fake_passcode`