Vehicle Identification Number
车架号(车辆识别码)查询服务/校验服务
The 17 character VIN:
VIN | |||
---|---|---|---|
Position | ISO Section | 49 CFR 565 | Assigned by |
1 - 2 | WMI | Country Code | SAE |
2 - 3 | Manufacturer, Type of MV | ||
4 - 8 | VDS | Vehicle Attributes | Manufacturer |
9 | VIS | Check Digit | Calculated |
10 | Model Year | 30 Year Code | |
11 | Manufacturing Plant | Manufacturer | |
12 - 17 | Serial Number | ||
Or < 500 models per year | |||
9 | VIS | Check Digit | Calculated |
10 | Model Year | 30 Year Code | |
11 | Manufacturing Plant | Manufacturer | |
12 - 14 | WMI Suffix | SAE | |
15 - 17 | Serial Number | Manufacturer |
目前,只在centos7.x上做了兼容性测试。
提供web查询服务
请求
curl http://127.0.0.1/vin/v1/LVSHCAMB1CE054249
响应
{
"status": "20000000",
"message": "ok",
"result": [{
"vincode": "LVSHCAMB",
"驱动形式": "前置前驱",
"排量(升)": "1.6 L",
"进气形式": "自然吸气",
"变速器描述": "手动变速器(MT)",
"燃油类型": "汽油",
"品牌": "福特",
"最大马力(ps)": "125",
"厂家": "长安福特马自达",
"VIN年份": "2012",
"档位数": "5",
"车型": "福克斯-两厢",
"排放标准": "国4"
}]
}
从组成规则验证vin是否合法
一次获取,多次使用(Mongodb缓存数据)
系统主要依赖两个组件
mongodb实现了无模式,非常适合存储网络爬取到的数据,rabbitmq降低了多个模块的耦合性。
系统包含了多个队列,这里做一个统一说明
包含了两种爬虫
代理网站
vin查询网站
这里涉及到一个跨域问题,在Tornado里做了忽略处理。