Coder Social home page Coder Social logo

jiangqqlmj / 36kr_data_crawler Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 6.0 529 KB

36Kr网站数据爬虫抓取工具,采用Jsoup,主要抓取了网站首页广告轮播,文章分类标签,分类列表数据以及文章详情和作者相关信息

Java 100.00%

36kr_data_crawler's Introduction

36Kr_Data_Crawler

36Kr网站数据爬虫抓取工具,采用Jsoup,主要抓取了网站首页广告轮播,文章分类标签,分类列表数据以及文章详情和作者相关信息

本人CSDN博文地址http://blog.csdn.net/developer_jiangqq
###使用方法 ####01.首页广告轮播数据抓取使用方法

     Document document = Jsoup.connect(Config.CRAWLER_URL).timeout(100000).get();
		 List<AdHeadBean> adHeadBeans=new HeadDataManager().getHeadBeans_CNK(document);
		 Gson gson=new Gson();
		 System.out.println(gson.toJson(adHeadBeans));

####02.首页文章分类标签Tab数据抓取使用方法

   Document document = Jsoup.connect(Config.CRAWLER_URL).timeout(100000).get();  
   List<CategoriesBean> categoriesBeans=new CategoryDataManager().getCategoriesBeans_CNK(document);
	 Gson	gson=new Gson();
	 System.out.println(gson.toJson(categoriesBeans));

####03.文章根据分类标签的列表抓取使用方法

   Document document = Jsoup.connect(Config.CRAWLER_URL).timeout(100000).get();  
   List<HomeNewsBean> homeNewsBeans=new HomeNewsDataManager().getHomeNewsBeans_CNK(document);
	 Gson	gson=new Gson();
	 System.out.println(gson.toJson(homeNewsBeans));

####04.文章详情数据抓取使用方法

    new Gson().toJson(new ArticleDataManager(CTextUtils.getArticleId("http://36kr.com/p/5040442.html")).getArticleBean(Jsoup.connect("http://36kr.com/p/5040442.html").timeout(100000).get()))

###本人录制的其他视频 1.Android Annotations注入框架视频:http://www.cniao5.com/course/10074

###关于本人 邮箱:[email protected]
本人微信/QQ:781931404
Android技术交流群:99787482

Android开发群1:107086751
Android开发群3:109244103

36kr_data_crawler's People

Contributors

jiangqqlmj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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