ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| (function($){ | |
| var map = { | |
| pickup: 1, | |
| driver: 2, | |
| fare: 3, | |
| car: 4, | |
| city: 5, | |
| payment_method: 6 | |
| }; |
| # Start a local webserver to serve the file of your current directory on the LAN: | |
| # Python version 2.x: | |
| python -m SimpleHTTPServer | |
| # Python version 3.x: | |
| python3 -m http.server | |
| #Start a local SMTP server to debug your app emails. Emails will be printed on stdout: | |
| python -m smtpd -c DebuggingServer -n | |
| #Parse and prettify a JSON string with: |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,| function Json2CSV(objArray) | |
| { | |
| var | |
| getKeys = function(obj){ | |
| var keys = []; | |
| for(var key in obj){ | |
| keys.push(key); | |
| } | |
| return keys.join(); | |
| }, objArray = format_json(objArray) |
| # load libraries | |
| require 'rubygems' rescue nil | |
| require 'wirble' | |
| #require 'json' | |
| alias q exit | |
| class Object | |
| def local_methods | |
| (methods - Object.instance_methods).sort |