上一篇《建筑资质爬虫抓取-全国建筑市场监管公共服务平台(一)》提到如果解密全国建筑市场监管公共服务平台(http://jzsc.mohurd.gov.cn/)JSON密码解密的问题。
该篇博文主要分析网站的接口:
1、企业列表接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/list?pg=0&pgsz=15&total=450
其中 pg代表当前页 pagsz代码显示一页数据 total显示总条数。
2、企业搜索接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/list?complexname=【名称】&pg=0&pgsz=15&total=0
其中complexname代表搜索关键词 这里只有企业名称或者统一社会信用代码;这里企业名称支持模糊关键词,信用代码不支持。
3、企业基本信息接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compDetail?compId=【ID】
这里compId就是企业ID,主要这里的企业ID会根据每天而变化。
4、企业统计接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/getTotal?qyId=【ID】&qyCode=914403007663577081
这里的qyId就是企业ID
5、企业资质资格接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/caDetailList?qyId=【ID】&pg=0&pgsz=15
这里的qyId就是企业ID。
6、注册人员接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/regStaffList?qyId=【ID】&pg=0&pgsz=15
这里的qyId就是企业ID。
7、工程项目接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compPerformanceListSys?qy_id=【ID】&pg=0&pgsz=15
这里的qy_id就是企业ID。
8、不良行为接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compCreditRecordList?compId=【ID】&mark=0&pg=0&pgsz=15
这里的compId就是企业ID。
9、良好行为接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compCreditRecordList?compId=【ID】&mark=1&pg=0&pgsz=15
这里的compId就是企业ID。
10、黑名单记录接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compCreditBlackList?compId=【ID】&pg=0&pgsz=15
这里的compId就是企业ID。
11、失信联合处罚记录接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compPunishList?corpId=【ID】&pg=0&pgsz=15
这里的compId就是企业ID。
12、变更记录接口:
http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/traceList?qyId=【ID】&pg=0&pgsz=15
这里的qyId就是企业ID。
其中
企业基本信息接口(http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/compDetail?compId=【ID】)
企业资质接口(http://jzsc.mohurd.gov.cn/api/webApi/dataservice/query/comp/caDetailList?qyId=【ID】&pg=0&pgsz=15)
这两个接口需要一些认证,才能访问;不然会提提
{"code":408,"message":"token失效","success":false} |
其他的接口相对比较友好,这里就不详情说明怎么又想进行token认证;如果需要解密方式,可以联系作者(QQ:397713472 电话:13518355196[微信同号])。
企业 接口 爬虫 建筑资质 建筑资质人员