NikePlus-WebCrawler
A webcrawler as executeable RubyGem, which grabs fine-grained data of your personal Nike+ runs and saves these as XML and JSON files.
RubyGem
Install the RubyGem 'nikeplus_webcrawler':
gem install nikeplus_webcrawler
Execute the RubyGem with or without arguments:
nikeplus_webcrawler
nikeplus_webcrawler [LOGIN_MAIL] [LOGIN_PASS]
RubyScript
Unzip the download and switch to the directory:
unzip ~/Downloads/NikePlus-WebCrawler-master.zip
cd ~/Downloads/NikePlus-WebCrawler-master/ruby_script/
Execute the ruby script and follow the instructions:
ruby nikeplus_webcrawler.rb
Process
------------------------------------------
NikePlus-WebCrawler
------------------------------------------
Type your mail: [LOGIN_MAIL]
Type your pass: [LOGIN_PASS]
------------------------------------------
Login successful.
------------------------------------------
Start to grab your 10 runs:
ID #1234567890 (1/10)
ID #2345678901 (2/10)
ID #3456789012 (3/10)
// ...
------------------------------------------
Ready! ./data_runs/json & ./data_runs/xml
------------------------------------------
Result
.
├── nikeplus_webcrawler.rb
├── cookies // save the login session in a file
├── login.xml // save the basic data of your account
└── data_runs // generated json and xml data
├── json
│ ├── 1234567890.json
│ ├── 2345678901.json
│ ├── 2345678901.json
│ └── ...
└── xml
├── 1234567890.xml
├── 2345678901.xml
├── 3456789012.xml
└── ...
Example: 2076258238.json, 2076258238.xml
Dependencies
- Ruby 1.9.3
- RubyGems
- Unix Shell (curl, grep)
Tested
System: OSX 10.8.2
Parsers
- XML Parser for Processing 2 (Snapshot).
Visualizations
License
The script and example is Open Source Software released under the MIT License. It's developed by Darius Morawiec.