liujiao111 / poi Goto Github PK
View Code? Open in Web Editor NEW百度以及高德地图POI数据和POI边界坐标数据(目前仅限百度)爬取代码,采用Python编写
百度以及高德地图POI数据和POI边界坐标数据(目前仅限百度)爬取代码,采用Python编写
Poi_polygon程序爬取是按城市的矩形爬取的,能否指定只爬取该城市内部的某个矩形的poi数据
我在使用baidu文件夹下boundary中的代码时常常出现http报错及输出“成功返回边界”后coords却为空的情况
网络请求出错: HTTPSConnectionPool(host='map.baidu.com', port=443): Max retries exceeded with url: /?newmap=1&reqflag=pcmap&biz=1&from=webmap&da_par=direct&pcevaname=pc4.1&qt=ext&uid=9ad99e1798079eb72fe67b64&c=340&ext_ver=new&tn=B_NORMAL_MAP&nn=0&auth=fw9wVDQUyKS7%3DQ5eWeb5A21KZOG0NadNuxHNBxBBLBHtxjhNwzWWvy1uVt1GgvPUDZYOYIZuEt2gz4yYxGccZcuVtPWv3GuxNt%3DkVJ0IUvhgMZSguxzBEHLNRTVtlEeLZNz1%40Db17dDFC8zv7u%40ZPuxtfvSulnDjnCENTHEHH%40NXBvzXX3M%40J2mmiJ4Y&ie=utf-8&l=19&b=(12679382.095,2565580.38;12679884.095,2565907.38)&t=1573133634785 (Caused by ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
成功返回边界: 5e8b80ffe6d37aefd618b755,
请问有人知道是怎么回事吗?是不是接口需要更新?
File "D:\ana\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "F:/xiongan/POI/gaode/app.py", line 314
^
SyntaxError: invalid syntax
尝试了北京和天津均出现此问题,
北京显示总共数据10990条,但是只保存了5000多条,
天津显示总共数据9000多条,但是只保存了6000多天,
不清楚是什么原因
因为切片是根据某市的对角来划分的
# 根据城市名称和分类关键字获取poi数据 def getpois(cityname, keywords): i = 1 poilist = [] while True: # 使用while循环不断分页获取数据 result = getpoi_page(cityname, keywords, i) print(result) result = json.loads(result) # 将字符串转换为json print(result) if result['count'] == '0': break hand(poilist, result) i = i + 1 return poilist
字符串转换为json后没有count,并报错KeyError 'count'
你好,我在爬取学校的数据的时候,为什么每个学校都会重复爬取十几次呢
请问作者的的gdla版本是多少的?
用里面原始的经纬度反馈和自己改了的范围爬取商场、餐饮都是空的,请问是怎么回事
在百度申请的AK,申请的AK步骤中没有认证开发者上传身份证,而是绑定手机邮箱后直接创建一个应用,然后拿到了AK。
之后填入到代码中运行,返resp.text的信息为:
{
"status":9,
"message":"Permission Denied",
"result_type":null,
"results":[]
}
请问这个是因为什么原因?
我把shp.py的都注释掉了,只想要excel文件,但是最终显示出“正在写入CSV文件中
,写入成功” 但在任何文件夹中都没有产生这个文件,是怎么回事呢?
poi-pology 的 get_drids
函数并没有被使用
而且 while int(data['count']) > 890:
这个条件似乎不太对吧,会死循环
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.