Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
kickstarter-crawler
Advanced tools
Readme
npm install kickstarter-crawler -g
npm test
The following example crawls a project collecting general, funding, and location
related data
'use strict';
var kickstarterCrawler = require('kickstarter-crawler');
var config, project;
// Project configurations
config = {
url: 'https://www.kickstarter.com/projects/maxtemkin/philosophy-posters',
fields: ['general', 'funding', 'location']
};
// Initialize the crawler
project = new kickstarterCrawler.project(config);
// Make request (crawl)
project.request(function onRequest (err, data) {
// Something broke
if (err) {
console.log(err);
return;
}
// Log crawled data
console.log(data);
});
** :pizza: MORE EXAMPLES COMING :pizza: **
kickstarterCrawler.project(config)
config
config.url
config.fields
VALID FIELD VALUES
project.request(callback)
callback(err, data)
{Function}project.parse(HTML)
HTML
project.getTitle(callback)
callback(err, data)
data
{Object} will consist of {String} generalTitleproject.getCreator(callback)
callback(err, data)
data
{Object} will consist of {String} generalCreatorproject.getCategory(callback)
callback(err, data)
data
{Object} will consist of {String} generalCategoryproject.getSubCategory(callback)
callback(err, data)
data
{Object} will consist of {String} generalSubCategoryproject.getAvatar(callback)
callback(err, data)
data
{Object} will consist of {String} generalProjectAvatarURLproject.getProjectUrl(callback)
callback(err, data)
data
{Object} will consist of {String} generalProjectURLproject.getCreatorUrl(callback)
callback(err, data)
data
{Object} will consist of {String} generalCreatorURLproject.getProjectVideo(callback)
callback(err, data)
data
{Object} will consist of {String} generalProjectVideoURLproject.getNumDays(callback)
callback(err, data)
data
{Object} will consist of {Number} timeNumDaysproject.getStartTime(callback)
callback(err, data)
data
{Object} will consist of {Number} timeStartproject.getEndTime(callback)
callback(err, data)
data
{Object} will consist of {Number} timeEndproject.getDollarsRaised(callback)
callback(err, data)
data
{Object} will consist of {Number} fundingDollarsRaisedproject.getFundingGoal(callback)
callback(err, data)
data
{Object} will consist of {Number} fundingGoalproject.getPercentRaised(callback)
callback(err, data)
data
{Object} will consist of {Number} fundingPercentRaisedproject.getCurrency(callback)
callback(err, data)
data
{Object} will consist of {String} fundingCurrencyproject.getSuccess(callback)
callback(err, data)
data
{Object} will consist of {Boolean} fundingSuccessproject.getBackers(callback)
callback(err, data)
data
{Object} will consist of {Number} fundingNumBackersproject.getCity(callback)
callback(err, data)
data
{Object} will consist of {String} locationCityproject.getState(callback)
callback(err, data)
data
{Object} will consist of {String} locationStateproject.getCountry(callback)
callback(err, data)
data
{Object} will consist of {String} locationCountryproject.getUpdates(callback)
callback(err, data)
data
{Object} will consist of {Number} otherUpdatesproject.getComments(callback)
callback(err, data)
data
{Object} will consist of {Number} otherCommentsproject.getProjectsCreated(callback)
callback(err, data)
data
{Object} will consist of {Number} otherProjectsCreatedproject.getProjectsBacked(callback)
callback(err, data)
data
{Object} will consist of {Number} otherProjectsBackedproject.getWebsiteUrl(callback)
callback(err, data)
data
{Object} will consist of {String} otherWebsiteURLproject.getNumImages(callback)
callback(err, data)
data
{Object} will consist of {Number} mediaNumImagesproject.getImages(callback)
callback(err, data)
data
{Object} will consist of {Array} mediaImagesproject.getNumPledges(callback)
callback(err, data)
data
{Object} will consist of {Number} pledgesNumPledgesproject.getNumLimitedPledges(callback)
callback(err, data)
data
{Object} will consist of {Number} pledgesNumLimitedPledgesproject.getPledgeAmounts(callback)
callback(err, data)
data
{Object} will consist of {Array} pledgesAmountsproject.getPledgesData(callback)
callback(err, data)
data
{Object} will consist of {Object} pledgesDataFAQs
Kickstarter crawler that does what you think it would
We found that kickstarter-crawler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).