$ cnpm install lightscrape
Simple Node.js module for scraping various sites
npm i lightscrape
const lightscrape = require('lightscrape');
Every function returns a promise that resolves to an array of results
lightscrape.pastebin('javascript').then(ids => {
console.log(ids.length + ' JavaScript pastes:', ids);
});
More samples can be found in test.js
Copyright 2014 - 2016 © taobao.org |