{"id":28374839,"url":"https://github.com/nightmarcher/room-renting","last_synced_at":"2025-07-19T10:06:56.585Z","repository":{"id":156026090,"uuid":"138897118","full_name":"NightMarcher/room-renting","owner":"NightMarcher","description":"用Python爬取安居客房源信息，并用高德地图进行可视化","archived":false,"fork":false,"pushed_at":"2019-04-07T05:09:39.000Z","size":6573,"stargazers_count":20,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-26T02:40:12.121Z","etag":null,"topics":["bigdata","data-visualization","python3","scrawler"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NightMarcher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-06-27T15:01:46.000Z","updated_at":"2023-11-28T04:21:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cb21018-e8b7-43d2-ba89-464f54151b99","html_url":"https://github.com/NightMarcher/room-renting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NightMarcher/room-renting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMarcher%2Froom-renting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMarcher%2Froom-renting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMarcher%2Froom-renting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMarcher%2Froom-renting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightMarcher","download_url":"https://codeload.github.com/NightMarcher/room-renting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMarcher%2Froom-renting/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265915139,"owners_count":23848491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigdata","data-visualization","python3","scrawler"],"created_at":"2025-05-29T22:11:08.933Z","updated_at":"2025-07-19T10:06:56.577Z","avatar_url":"https://github.com/NightMarcher.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RoomRenting\n用Python爬取安居客房源信息，并用高德地图进行可视化\n\n## 脚本介绍\n- crawl_renting_info.py用来从相应租房网站上爬取租房信息，解析后存储到数据库中，与此同时将过程中的信息以日志的形式写入crawl_logger.log\n- analyse_renting_info.py用来从数据库中读取出爬取的租房信息的地址，通过调用高德地址编码API转换为经纬度，去除转换错误以及地址本身有问题的数据，最后将有效的经纬度更新到原有的数据集合中，与此同时将过程中的信息以日志的形式写入analyse_logger.log\n- export_renting_info.py用来将数据库中包含有效经纬度的租房信息以一定的格式导出到renting_info_mapdata.csv，以便之后调用高德的接口进行数据展示\n- show_renting_info.py用来对数据库中的租房信息进行按照行政区域和地铁沿线进行统计和处理，以DataFrame的形式输出，便于读者查看\n- search_renting_info.py用来与用户进行交互，通过对用户输入地址的经纬度转化，然后结合用户输入的其他租房条件，展示出距离用户输入地址一定范围的，满足用户条件的房源信息\n\n## 效果展示\n![info_in_mongodb](https://github.com/NightMarcher/RoomRenting/blob/master/image/info_in_mongodb.png?raw=true \"info_in_mongodb\")\n![heat_map](https://github.com/NightMarcher/RoomRenting/blob/master/image/heat_map.png?raw=true \"heat_map\")\n![district_map](https://github.com/NightMarcher/RoomRenting/blob/master/image/district_map.png?raw=true \"district_map\")\n![line7](https://github.com/NightMarcher/RoomRenting/blob/master/image/line7.png?raw=true \"line7\")\n![info_map_2](https://github.com/NightMarcher/RoomRenting/blob/master/image/info_map_2.png?raw=true \"info_map_2\")\n![map_4_app](https://github.com/NightMarcher/RoomRenting/blob/master/image/map_4_app.png?raw=true \"map_4_app\")\n![sum_4_district_info](https://github.com/NightMarcher/RoomRenting/blob/master/image/sum_4_district_info.png?raw=true \"sum_4_district_info\")\n![sum_4_line_info](https://github.com/NightMarcher/RoomRenting/blob/master/image/sum_4_line_info.png?raw=true \"sum_4_line_info\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmarcher%2Froom-renting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightmarcher%2Froom-renting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmarcher%2Froom-renting/lists"}