phantomjs-cheerio

1.0.4 • Public • Published

phantomjs-cheerio

install

npm install -S phantomjs-cheerio

use

1.request

  const pc = require('phantomjs-cheerio')
  pc.request({ url: 'http://m.ashvsash.com/category/%E7%94%B5%E5%BD%B1' }).then(($) => {
    console.log('4', moment().format("HH:mm:ss"))
    const href = $('div.pagination a.extend').attr('href')
    const r = parseInt(href.substr(href.lastIndexOf('/') + 1))
    console.log('totalPage', r)
  })

2.queue

  pc.queue().then(value => {
  })

tip

publish

npm publish

Readme

Keywords

Package Sidebar

Install

npm i phantomjs-cheerio

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

5.28 kB

Total Files

4

Last publish

Collaborators

  • huangjinlin