Code Monkey home page Code Monkey logo

zhihuspider's Introduction

ZhiHuSpider

ZhiHuSpider简介

原生Java无框架无jar包
实现爬取知乎问题中的图片和知乎推荐内容
并下载到本地
通俗易懂,简介明了,可扩展性更高

ZhiHuSpider结构介绍

src
     bean
           ZhiHuBean.java ----- 爬取推荐内容的bean
           ZhiHuBeanPicBean.java ----- 爬取问题中图片地址的bean
     mothod
           FlieReadWriter.java ----- 创建文件,下载推荐内容或图片的方法
           Spider.java() ----- 获取网页内容的方法
     test
           Main.java ----- 测试,抓取baidu的logo
           ZhiHuMain.java ----- 测试,下载图片或推荐内容

未完...

准备做个界面,用户输入url和磁盘地址,以及是否分页或显示全部答案
进一步爬些数据到redis或mysql,进行些数据分析

zhihuspider's People

Contributors

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