1.0.6 • Published 5 years ago

pedram v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Pedram

Pedram

Installing

Using npm:

$ npm install pedram

Using 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)
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago