2.3.1 • Published 9 years ago
wangyi-game-news-crawler v2.3.1
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