Skip to content

Instantly share code, notes, and snippets.

@kylehill
Created April 9, 2012 18:25
Show Gist options
  • Select an option

  • Save kylehill/2345247 to your computer and use it in GitHub Desktop.

Select an option

Save kylehill/2345247 to your computer and use it in GitHub Desktop.
Here's a fun code snippet
// Go to any https://capitalbikeshare.com page
// Open up Chrome Inspector, Javascript console
// Paste in this, insert your credentials, submit
$.post(
'https://capitalbikeshare.com/login',
[{name:'username', value:'USERNAME'},{name:'password', value:'PASSWORD'}],
function(data, textStatus, xhr) {
console.log('logged in');
$.get(
'https://capitalbikeshare.com/member/rentals',
function(data, textStatus, xhr) {
console.log('rentals');
console.log(data);
var d=$(data);
},
'html'
);
},
'html'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment