Created
July 7, 2016 19:12
-
-
Save gkio/9cb17c15276b83aeea344d9e24615605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create(); | |
var colorizer = require('colorizer').create('Colorizer'); | |
casper.start('http://findmyfbid.com/'); | |
casper.then(function() { | |
var url = casper.evaluate(function(url) { | |
$('.input-lg').val(url) | |
$('button').click() | |
},casper.cli.args); | |
}); | |
casper.then(function() { | |
var id = casper.evaluate(function() { | |
return $('code').text() | |
}); | |
this.echo('https://www.facebook.com/search/' + id + '/photos-of','INFO') | |
}); | |
casper.run(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment