Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xanke/node-crawler-server

一个轻量级nodejs的远程采集服务器
https://github.com/xanke/node-crawler-server

crawler nodejs server

Last synced: 27 days ago
JSON representation

一个轻量级nodejs的远程采集服务器

Awesome Lists containing this project

README

        

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

#### DEMO
发送请求
run npm dev
POST: /scan
```json
{
"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