{"id":16204478,"url":"https://github.com/jasonxudeveloper/python-poi-spider","last_synced_at":"2025-10-28T09:36:03.486Z","repository":{"id":108807322,"uuid":"299541617","full_name":"JasonXuDeveloper/Python-POI-Spider","owner":"JasonXuDeveloper","description":"Python兴趣点（POI）爬虫，通过百度地图API爬取指定城市兴趣点列表，包含其：坐标、名称、联系方式","archived":false,"fork":false,"pushed_at":"2020-09-29T08:08:58.000Z","size":11,"stargazers_count":19,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T16:40:26.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JasonXuDeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-09-29T07:42:02.000Z","updated_at":"2024-11-06T17:27:23.000Z","dependencies_parsed_at":"2023-07-15T20:15:36.680Z","dependency_job_id":null,"html_url":"https://github.com/JasonXuDeveloper/Python-POI-Spider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonXuDeveloper%2FPython-POI-Spider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonXuDeveloper%2FPython-POI-Spider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonXuDeveloper%2FPython-POI-Spider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasonXuDeveloper%2FPython-POI-Spider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasonXuDeveloper","download_url":"https://codeload.github.com/JasonXuDeveloper/Python-POI-Spider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976644,"owners_count":20377695,"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":[],"created_at":"2024-10-10T09:58:23.750Z","updated_at":"2025-10-28T09:35:58.441Z","avatar_url":"https://github.com/JasonXuDeveloper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-POI-Spider\nPython兴趣点（POI）爬虫，通过百度地图API爬取指定城市兴趣点列表，包含其：坐标、名称、联系方式\n\n\n\n## 特色\n\n- 可指定城市\n- 可查询轮流多个兴趣点\n- 可获得详细JSON信息，包含经纬度、名称、联系号码等内容\n- 自动翻页查询（百度接口每次最多只返回20条数据）\n- 自动整理合并\n- 自动生成POI结果目录\n- 自动针对POI生成JSON文件\n- 自动异常处理（并行达到上限重新查询）\n\n## 使用步骤\n\n1. 进入[百度地图开放平台](http://lbsyun.baidu.com/)，注册进入控制台，创建应用，基础服务选择地点检索\n2. 完成创建后，可以在应用管理查看是否有应用Key（AK）\n3. 打开**POI_Spider.py**并进入编辑\n4. 更改**ak**，估计在第39行上下，更改为你的应用的ak\n5. 运行程序\n6. 输入想要查询的城市\n7. 输入不在打印出来的列表里的兴趣\n8. 程序自动运行\n9. 项目目录查看结果\n\n## 运行结果\n\n运行后，会针对指定城市各个兴趣点进行爬取及整理，保存到JSON文件里\n\n运行时可能会出现错误，显示到达日限额，这就是需要给百度充钱了~\n\n下面就是会输出的内容（指定的城市是北京，兴趣点是地产）\n\n```json\n[\n  {\n    \"address\": \"北京市大兴区黄村西大街99号\",\n    \"area\": \"大兴区\",\n    \"city\": \"北京市\",\n    \"detail\": 1,\n    \"location\": {\n      \"lat\": 39.737639,\n      \"lng\": 116.333112\n    },\n    \"name\": \"龙熙房地产\",\n    \"province\": \"北京市\",\n    \"street_id\": \"49d959383f8ac442c61e5172\",\n    \"telephone\": \"(010)69258681\",\n    \"uid\": \"49d959383f8ac442c61e5172\"\n  },\n  {\n    \"address\": \"北京市海淀区安宁庄前街与清上园东路交叉路口西南侧(清上园)\",\n    \"area\": \"海淀区\",\n    \"city\": \"北京市\",\n    \"detail\": 1,\n    \"location\": {\n      \"lat\": 40.045964,\n      \"lng\": 116.337601\n    },\n    \"name\": \"麦田房产\",\n    \"province\": \"北京市\",\n    \"street_id\": \"7b17dcbee42d831776e5b6b4\",\n    \"uid\": \"7b17dcbee42d831776e5b6b4\"\n  }\n]\n```\n\n\n\n## 环境配置\n\n- 系统\n\n  MacOS/Windows/Linux 都支持\n- 环境\n\n  Python3.x都支持\n- 网络\n\n  能进百度就行\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonxudeveloper%2Fpython-poi-spider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonxudeveloper%2Fpython-poi-spider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonxudeveloper%2Fpython-poi-spider/lists"}