Created
October 12, 2015 19:58
-
-
Save RubyRonin/f1e7307d53af6ffe936d to your computer and use it in GitHub Desktop.
Throwing error
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 $ = 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