legend91325 / house

基于自定义搜索条件 爬取贝壳网站房源公开数据 方便自己查找收藏房子

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

house

基于自定义搜索条件 爬取贝壳网站房源公开数据 方便自己查找收藏房子

#使用说明 house.HouseMain 作为程序入口,只需要调节内部查询条件即可运行,自动爬取基于条件的所有房源数据,支持自动分页查询。

程序示例

BeiKeQuery beiKeQuery = BeiKeQuery.builder().build();
        //房屋挂牌价
        beiKeQuery.setStartMoney("500");
        beiKeQuery.setEndMoney("660");

        //房屋面积
        beiKeQuery.setStartArea("70");
        beiKeQuery.setEndArea("90");

        beiKeQuery.setHouseFeatures(Lists.newArrayList(BeiKeConstants.feature_满五));

        //房屋位置
        beiKeQuery.setHousePostion(BeiKeConstants.house_昌平);

        //楼层要求
        beiKeQuery.setFloors(Lists.newArrayList(BeiKeConstants.楼层_底楼层,BeiKeConstants.楼层_中楼层,BeiKeConstants.楼层_高楼层));

        //电梯要求
        beiKeQuery.setHosueDianTis(Lists.newArrayList(BeiKeConstants.电梯_有电梯,BeiKeConstants.电梯_无电梯));

        //楼龄要求
        beiKeQuery.setHouseAges(Lists.newArrayList(BeiKeConstants.楼龄_15年以内));

        //装修要求
        beiKeQuery.setHouseDecoration(Lists.newArrayList(BeiKeConstants.装修_精装修,BeiKeConstants.装修_普通装修));



        //供暖要求
        beiKeQuery.setHouseGongNuans(Lists.newArrayList(BeiKeConstants.供暖_自供暖,BeiKeConstants.供暖_集体供暖));

        //塔楼 板楼
        beiKeQuery.setHouseJieGous(Lists.newArrayList(BeiKeConstants.房屋建筑结构_塔楼,BeiKeConstants.房屋建筑结构_板楼,BeiKeConstants.房屋建筑结构_板塔结合));

        //房屋属性
        beiKeQuery.setHouseQuanShus(Lists.newArrayList(BeiKeConstants.房屋权属_商品房,BeiKeConstants.房屋权属_公房));

        beiKeQuery.setHouseUsings(Lists.newArrayList(BeiKeConstants.用途_普通住宅));

        //朝向
        beiKeQuery.setOrientations(Lists.newArrayList(BeiKeConstants.朝向_南北,BeiKeConstants.朝向_朝南));

        //几居
        beiKeQuery.setRooms(Lists.newArrayList(BeiKeConstants.room_二室,BeiKeConstants.room_三室));

        BeiKeUtil beiKeUtil = new BeiKeUtil();
        beiKeUtil.handle(beiKeQuery);

爬取结束,自动生成文本文件,供阅览。

About

基于自定义搜索条件 爬取贝壳网站房源公开数据 方便自己查找收藏房子


Languages

Language:Java 100.0%