Code Monkey home page Code Monkey logo

poi's Issues

百度POI边界爬取失败,http及坐标转换报错

我在使用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,
请问有人知道是怎么回事吗?是不是接口需要更新?
微信图片_20240807174118

高德网格划分爬取出错....

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

爬取单个城市数据中的app.py报错

# 根据城市名称和分类关键字获取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'

数据重复爬取

你好,我在爬取学校的数据的时候,为什么每个学校都会重复爬取十几次呢

baidu的api返回信息“Permission Denied”

在百度申请的AK,申请的AK步骤中没有认证开发者上传身份证,而是绑定手机邮箱后直接创建一个应用,然后拿到了AK。
之后填入到代码中运行,返resp.text的信息为:
{
"status":9,
"message":"Permission Denied",
"result_type":null,
"results":[]
}
请问这个是因为什么原因?

为什么没有保存下CSV文件?

我把shp.py的都注释掉了,只想要excel文件,但是最终显示出“正在写入CSV文件中
,写入成功” 但在任何文件夹中都没有产生这个文件,是怎么回事呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.