Created
October 12, 2015 20:05
-
-
Save RubyRonin/a203c05df621beed603b to your computer and use it in GitHub Desktop.
This file contains 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 request = require('bluebird'), | |
bhttp = require('bhttp'), | |
cheerio = require('cheerio'), | |
fs = require('fs'), | |
formData = []; | |
bhttp.get("http://services.phila.gov/", {}, function(err, response) { | |
if (err) { | |
return console.error('ERROR! This is what went wrong:', err); | |
} | |
var body = response.body; | |
var $ = cheerio.load(body); | |
$('input[type="text"]').val('test').html().each(function(){ | |
var formData = this; | |
}); | |
}); | |
console.log(formData); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment