1 Star 0 Fork 1

hanlei525 / nodeCrawler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

nodeCrawler

介绍

node写的爬虫案例,可以运行直接爬取数据作为代理服务,接口文档

软件架构

.
├── apidoc  apidoc导出的(接口文档)文件
	└── index.html  可直接双击在浏览器端运行接口文档
├── node_modules  依赖包
├──	router  路由器实例(具体的接口处理逻辑)
	├──  baiduNews  百度新闻的爬取案例
	└──  bossData  boss直聘数据的爬取案例
├── apidoc  apidoc的配置文件
└── index.js  入口文件
    

安装和使用说明

  1. npm install 安装依赖
  2. node index.js 运行 或者全局安装nodemonnpm install nodemon -g)之后 npm run dev,端口号默认3000
  3. 全局安装apidocnpm install apidoc -g)之后导出 npm run apidoc

接口文档

  1. http://localhost:3000/baiduNews baiduNews - 百度新闻(最热新闻和本地新闻)

  2. http://localhost:3000/baiduNews bossData - boss直聘

MIT License Copyright (c) 2020 hanlei525 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

node写的爬虫案例,可以运行直接爬取数据作为代理服务 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/hlshare/node-crawler.git
git@gitee.com:hlshare/node-crawler.git
hlshare
node-crawler
nodeCrawler
master

搜索帮助