Hi, I was making a scraper by myself while I found your git, ur lib is super nice!
as I tried to run a simple code to see what data could be fetched I realized that basic data, such as Creator and Campaign Name, aren't scraped correctly.
app.get('/kick_scrape', function(req, res){
options = {
url: 'https://www.kickstarter.com/projects/jakehimself/the-bluelace-project-a-revolution-built-one-foot-a'
}
request(options, function(error, response, html){
if(!error){
var project = new ks.project(options)
var title, release, rating;
var json = {
title : "",
creator : {
name: "",
image: "",
fb: ""
},
goal: ""
};
project.request(function(err, data) {
if(err) throw err
res.send(data);
})
}
})
})
{
"general_title": "",
"general_creator": "",
"general_subCategory": "",
"general_avatar": "https://s3.amazonaws.com/ksr/avatars/1937456/HEADSHOT.small.jpg?1393464758",
"general_projectUrl": "http://www.kickstarter.comundefined",
"general_creatorUrl": "http://www.kickstarter.comundefined",
"location_city": "",
"funding_dollarsRaised": 150795.34,
"funding_fundingGoal": 25000,
"funding_percentRaised": 603.18,
"funding_currency": "USD",
"funding_successful": true,
"funding_backers": 11749,
"time_days": 30,
"time_start": 1384873738000,
"time_end": 1387465738000,
"media_numPictures": 17,
"media_pictures": [
"https://s3.amazonaws.com/ksr/projects/741464/photo-1024x768.jpg?1397854212",
"https://s3.amazonaws.com/ksr/avatars/1937456/HEADSHOT.small.jpg?1393464758",
"https://s3.amazonaws.com/ksr/avatars/1937456/HEADSHOT.small.jpg?1393464758",
"https://s3.amazonaws.com/ksr/assets/001/351/633/d8a84934f76071e111a31d1e605c08af_large.jpg?1384900383",
"https://s3.amazonaws.com/ksr/assets/001/351/597/30eb46bad068c4c83655c4e1abcd2b2c_large.jpg?1384900059",
"https://s3.amazonaws.com/ksr/assets/001/458/109/f83b4cd7ed8643eb24632ed1bff50fb4_large.jpg?1387464863",
"https://s3.amazonaws.com/ksr/assets/001/296/066/232a0a2f291f49c74888b354986423d2_large.jpg?1383863301",
"https://s3.amazonaws.com/ksr/assets/001/350/399/6669fab85d541438fba8286b6dd4beb3_large.jpg?1384887898",
"https://s3.amazonaws.com/ksr/assets/001/299/182/89cb4b4f42d2c4ef511008e22f794716_large.jpg?1383921864",
"https://s3.amazonaws.com/ksr/assets/001/299/163/932e37729a5a1faecbc1d0081bed691c_large.jpg?1383921679",
"https://s3.amazonaws.com/ksr/assets/001/299/254/596d8a5f936ac1d0bc2bd7d18fa1a7a0_large.jpg?1383922840",
"https://s3.amazonaws.com/ksr/assets/001/299/255/4fb9e0b870745fc8355db39fa4586c8f_large.jpg?1383922859",
"https://s3.amazonaws.com/ksr/assets/001/299/259/64fedeedf06fce670a02709209d5d5f6_large.jpg?1383922889",
"https://s3.amazonaws.com/ksr/assets/001/299/917/0f6a4033439a6e4f9ccf09f68487d094_large.jpg?1383933076",
"https://s3.amazonaws.com/ksr/assets/001/417/907/5ba1c4104808f112ba1937fbbc8082ee_large.jpg?1386366135",
"https://s3.amazonaws.com/ksr/assets/001/405/895/e3b758c3c421246ebdc7a6e7597ad5de_large.jpg?1386108447",
"https://s3.amazonaws.com/ksr/assets/001/456/799/2ea982eabaf3b7b4749c3c89264310ce_large.jpg?1387419892"
],
"facebook_connected": false,
"facebook_name": "",
"facebook_numFriends": 0,
"other_updates": null,
"other_comments": 379,
"other_projectsCreated": 0,
"other_websiteName": "",
"pledges_number": null,
"pledges_limited": false,
"pledges_percentLimited": null,
"pledges_amounts": [],
"pledges_data": {}
}
I'll take a look to the code and see if I can fix it. if I succeed, I'll send u a PR.