wi1dcard / china-divisions Goto Github PK
View Code? Open in Web Editor NEW📍**行政区划地址库 SDK + 爬虫 + 数据。
License: MIT License
📍**行政区划地址库 SDK + 爬虫 + 数据。
License: MIT License
PHP Parse error: syntax error, unexpected '?' in /data/china-divisions/scripts/crawler.php on line 13
function division_filter(array $data) : ?array
读取config灵活一些,可以根据项目需要爬数据。比如有些项目需要5级的,爬虫源码最大4级。
还是 http://www.mca.gov.cn/article/sj/xzqh/2019/ **行政区域查询的比较及时
我一直在想,这样的爬虫,有一天会不会人家的接口停掉怎么办。
请问 seach()
方法 地址规范查询 使用时报错,
Exception 'ChinaDivisions\Exceptions\ResponseException' with message 'HSF 服务地址未找到:ReceiveServiceInvoker~serviceName=CNDZK.ADDRESS.QUERY.123,appName=cndzk_address_query,version=1.0.0,异常信息=HSF 服务地址未找到 traceId:0b521c8b15864945343516403e2d21'
我在 https://global.link.cainiao.com/ 注册了账号,新增了应用,
尝试修改 search的参数为:
$request = $this->client->build(
'CNDZK_ADDRESS_QUERY',
'********key************',
[
'address' => $fullAddress,
'limit' => intval($limit),
],
'*************cp code******'
);
后,直接报错
Exception 'ChinaDivisions\Exceptions\ResponseException' with message '非法的XML/JSON:request content from invoker is not invalid json. traceId:0b51153b15864938084385919e0587'
是我哪个地方操作错误了吗?
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.