Skip to content

huangjinlin/phantomjs-cheerio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

phantomjs and cheerio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published