您的位置:首页 > Web前端 > Node.js

基于nodejs爬虫程序下载

2018-03-14 17:21 232 查看

node-crawler

一个基于nodejs的网站采集服务器 可部署在任何服务器上远程调用

DEMO

发送请求 run npm dev POST: /scan
{
"url": "http://www.charlotterusse.com/shoes/shop-all-shoes?sz=30&start=0",
"model": [{"find":".product-tile","child":[{"name":"name","type":"","method":[{"find":".name-link","attr":""}]},{"name":"price","type":"","method":[{"find":".price-sales","attr":""}]},{"name":"image","type":"","method":[{"find":"img","attr":"src"}]},{"name":"url","type":"","method":[{"find":"a","attr":"href"}]}]}],
"oid": "7e11c4cb-0456-e9a9-65d5-b64c86d12b94"
}

部署

推荐使用 forever https://github.com/foreverjs/forever启动服务器forever start server.js
程序下载地址:https://u16968133.pipipan.com/fs/16968133-241391394
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nodejs 爬虫