Skip to content

Instantly share code, notes, and snippets.

@RubyRonin
Created October 12, 2015 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubyRonin/847f3bfe2aa6769b75c0 to your computer and use it in GitHub Desktop.
Save RubyRonin/847f3bfe2aa6769b75c0 to your computer and use it in GitHub Desktop.
error
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