house_spider:Lianjia house spider链家二手房爬虫~ Springboot + Webmagic + Mysql + Redis

上传者: 42168265 | 上传时间: 2022-05-28 23:58:23 | 文件大小: 80KB | 文件类型: ZIP
house_spider Lianjia house spider链家二手房爬虫~ Springboot + Webmagic + Mysql + Redis 简介 - 基于Java8 +、开源爬虫框架WebMagic、Springboot的一个链家爬虫,上手即用,可以指定需要爬取的城市名称、或者爬取全国。 - 数据存Mysql,默认根据搜索城市+日期自动建表,如搜索“南京”,则会通过JDBC新建表:“南京_20191127” - 没有用WebMagic的Pipeline来存DB,而是直接用JDBC存的,默认爬虫线程数为1,每翻页1页批量插入Mysql。 - 由于链家限制爬取页数为100页,所以一个城市下,先查出所有行政区,再遍历行政区下的所有街道,以每个街道为单位,进行最大100页的爬取,这样基本上能爬下城市的所有房源数据。(部分别墅、车位直接忽略没存DB) 使用 基础依赖:安装mysq

文件下载

资源详情

[{"title":"( 28 个子文件 80KB ) house_spider:Lianjia house spider链家二手房爬虫~ Springboot + Webmagic + Mysql + Redis","children":[{"title":"house_spider-master","children":[{"title":"pom.xml <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"mvnw <span style='color:#111;'> 8.90KB </span>","children":null,"spread":false},{"title":"citys.json <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 743B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"flowingbit","children":[{"title":"data","children":[{"title":"collect","children":[{"title":"house_spider","children":[{"title":"HouseSpiderApplication.java <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"dao","children":[{"title":"RedisDAO.java <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"HouseDao.java <span style='color:#111;'> 7.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"City.java <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":"Region.java <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"House.java <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"Street.java <span style='color:#111;'> 766B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"SpiderController.java <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"processor","children":[{"title":"StreetProcessor.java <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false},{"title":"HouseProcessor.java <span style='color:#111;'> 10.39KB </span>","children":null,"spread":false},{"title":"RegionProcessor.java <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"CityProcessor.java <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"cron","children":[{"title":"CronSpider.java <span style='color:#111;'> 938B </span>","children":null,"spread":false}],"spread":false},{"title":"SpiderService.java <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"email","children":[{"title":"EmailService.java <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"utils","children":[{"title":"StringUtil.java <span style='color:#111;'> 525B </span>","children":null,"spread":false},{"title":"SerializeUtil.java <span style='color:#111;'> 880B </span>","children":null,"spread":false},{"title":"IOUtil.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 311B </span>","children":null,"spread":false},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"maven-wrapper.jar <span style='color:#111;'> 47.20KB </span>","children":null,"spread":false},{"title":"MavenWrapperDownloader.java <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"maven-wrapper.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"mvnw.cmd <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明