GithubHelp home page GithubHelp logo

lagou-spider-node's Introduction

拉勾职位爬虫

安装

  1. 安装基本依赖包 npm i
  2. 安装 mongodb

使用指南

  1. 爬虫基本设置 - settings.js

    {
    	dbUri: "mongodb://hostname/xxx",  // mongodb数据库地址
    	modelName: "frontend", // 将本次数据保存到数据库的表名
    	job: "前端", // 职位搜索条件
    	city: ["北京", "上海", "广州", "深圳", "杭州"] // 职位搜索城市条件
    }
    
  2. 启动爬虫: npm start , 访问 127.0.0.1:3000/start 启动并查看进度

  3. 挂在后台等待爬虫爬完。

注意事项:此处用的是一个免费的动态IP源,稳定性一般,所以爬虫速度不可能太快。追求速度与激情的,可自行替换更加稳定可靠快速的IP源,秒速爬完不是梦。

数据可视化分析demo

目录

|
|---- settings.js        	 爬虫配置
|---- spider-app.js  		 应用入口
|
|---- models/
|       |---- db.js  		 数据库模型
|		|---- mapLimit.js    并发控制库
|		|---- proxy.js 	     动态代理Ip池
|		|---- spiderJson.js  爬取json数据
|		|---- spiderHTML.js  爬取详情信息
|		
|---- analysis/
		|---- data/  		 源数据
		|---- js/ 		     数据处理
		|---- index.html 	 数据分析

博客详解

lagou-spider-node's People

Contributors

sunshowerc avatar weiyu-chen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.