1.0.4 • Published 6 years ago

phantomjs-cheerio v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago