wangyi-game-news-crawler

2.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i wangyi-game-news-crawler

Weekly Downloads

5

Version

2.3.1

License

none

Last publish

Collaborators

  • pleasurazy