Giter Site home page Giter Site logo

spider's Introduction

spider

一. 简介

通过 spring boot 搭建的爬虫系统

二. 技术选型

spring boot : 搭建项目框架,比较迅速,集成嵌入式tomcat,部署运行方便,零配置代码简洁

elasticSearch : 作为nosql数据存储引擎

elastic-job : 分布式作业调度系统, 依赖zookeeper环境作为分布式协同

WebMagic : 爬虫框架,有去重功能,支持Xpath、regex、css等选择器

三. 运行方式

先启动zookeeperelasticsearch , 并修改相应配置,然后按下面任意方式启动项目

方式一: 执行命令mvn spring-boot:run即可启动

方式二: maven打成jar包后,将使用命令 java -jar spider-1.0.0-SNAPSHOT.war & 启动spider-1.0.0-SNAPSHOT.war

方式三: 部署在tomcat中直接运行

四. 访问

http://localhost:8080/spider?url=http://www.funi.com/loupan/region_56_0_0_0_1

五. 可视化

使用kibana关联elasticsearch, 动态展示elasticsearch存储数据, 效果图如下:

kibana-1 kibana-2

六. 备注

  1. ElasticSearch搭建步骤
  2. Elastic-Job构建步骤
  3. Zookeeper使用步骤
  4. kibana安装

spider's People

Contributors

zyongjava 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.