1.0.6 • Published 7 years ago
pedram v1.0.6
Pedram
Pedram
Installing
Using npm:
$ npm install pedramUsing yarn:
$ yarn add pedram#::crawl
const ped = new Pedram()
await ped.addSelectors([
{ q: '.className', type: 'text', name: 'Title'},
{ q: /pedram/g , type: 'regex', name: 'Reg'},
{ q: 'h2', type: 'text', name: 'Links', many: true }
])
await ped.setLinks('https://www.npmjs.com/package/pedram')
await ped.crawl()
console.log(ped.results)
console.log(ped.errors)#::addSelectors()
const ped = new Pedram()
await ped.addSelectors([
{ q: '.className', type: 'text', name: 'Title'},
{ q: /pedram/g , type: 'regex', name: 'Reg'},
{ q: 'h2', type: 'text', name: 'Links', many: true }
])#::setLinks()
const ped = new Pedram()
await ped.setLinks('https://www.npmjs.com/package/pedram')#::addLinks()
const ped = new Pedram()
await ped.addLinks('https://www.npmjs.com/package/pedram')#::setLog()
ped.setLog(true)