Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pboos/ingress-passcode-scraper
- Owner: pboos
- Created: 2013-02-03T05:54:15.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-02T11:06:41.000Z (almost 12 years ago)
- Last Synced: 2024-10-21T05:53:25.244Z (3 months ago)
- Language: JavaScript
- Size: 80.1 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`