Created
October 12, 2015 19:53
-
-
Save RubyRonin/847f3bfe2aa6769b75c0 to your computer and use it in GitHub Desktop.
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(this); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment