Giter Site home page Giter Site logo

zhihucrawler-java's Introduction

ZhihuCrawler简介

利用原生Java实现,不依赖爬虫框架。并针对线程池性能、异常以及反爬虫措施进行多次 优化,容错性及爬取速度良好,并在后期利用 Redis 实现分布式爬虫。此爬虫项目可完成百万级知乎用户信息爬取,并进行分析展示。 可实现:

1.百万知乎用户信息的爬取、持久化与展示;
2.某一个知乎问题下的图片爬取,并存储到本地,让你轻松看美女;
3.扩展Redis作为爬取队列实现分布式爬取。

ZhihuCrawler项目模块介绍

ZhihuCrawler

-- bean包     知乎用户信息及某一问题下的图片bean抽象
-- module包   断点续爬实现及json的格式输出
-- service包  爬虫业务类:多线程知乎用户爬取及图片爬取
-- utils包    工具类:包括反爬代理、html页面获取、页面解析、持久化的工具类
-- CrawlerMain  启动类

百万知乎用户信息展示

利用百度开源框架Echarts进行展示,由于没搭栈,就直接放了图片:

https://github.com/wjzuestc/ZhihuCrawler-Java/blob/master/数据分析结果1.png

https://github.com/wjzuestc/ZhihuCrawler-Java/blob/master/数据分析结果2.png

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.