2.3.1 • Published 9 years ago

wangyi-game-news-crawler v2.3.1

Weekly downloads
21
License
-
Repository
bitbucket
Last release
9 years ago

About

A crawler for http://a.163.com, which 綜合, 攻略, 趣聞, 公告, 藍帖 but only page 1 has been considered.

Usage

import wangyi from 'wangyi-game-news-crawler'

let URLs = [
  'http://a.163.com/special/heroes-newslist/',
  'http://a.163.com/special/heroes-guidelist/',
  'http://a.163.com/special/heroes-funlist/',
  'http://a.163.com/special/heroes-offical/',
  'http://a.163.com/special/heroes-bluepost/',
]

wangyi.findAll({ url: URLs }).then(function(result) {
  console.log(result) // array [object, object, ...]
  console.log(result[0]) // object {title, url, publichedDate}
})

Build

npm run build

Test

npm test
2.3.1

9 years ago

2.3.0

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago