驾考宝典排行榜之爬虫接口解决方案

Step1:获取题目列表

http://api2.jiakaobaodian.com/api/open/exam/do-exam.htm?_r=1125856454782524308*&cityCode=350800&page=1&limit=25&course=kemu1&carType=car&_=0.35608833306469023

{
    "data": [888800, 893400, 888600, 895800, 890700, 1162800, 876400, 880000, 879800, 875700, 869200, 883300, 858500, 1159300, 856900, 856700, 837100, 858400, 856800, 838500, 858800, 857700, 837400, 858700, 838900, 859100, 1124000, 835500, 829300, 829700, 822400, 1125700, 822300, 1128100, 836200, 816200, 816100, 807700, 1094300, 1122700, 890600, 887200, 895400, 891200, 892400, 1161400, 1162500, 893600, 886600, 874200, 1100300, 883900, 868400, 882700, 870400, 1098100, 870000, 869800, 850900, 862200, 862100, 840700, 839000, 855400, 849200, 847700, 854400, 841600, 851400, 849500, 865400, 866100, 861600, 840200, 846500, 861800, 852000, 847900, 848300, 814100, 803800, 811300, 810600, 1096200, 814000, 817700, 821800, 836100, 820900, 826700, 813800, 810500, 818100, 832400, 824500, 813000, 804600, 813100, 819200, 1123700],
    "errorCode": 0,
    "message": null,
    "success": true
}

Step2:获取题目信息

http://api2.jiakaobaodian.com/api/open/question/question-list.htm?_r=11258564547825243087&page=1&limit=25&questionIds=888800%2C893400%2C888600%2C895800%2C890700%2C1162800%2C876400%2C880000%2C879800%2C875700&_=0.2508271890692413

{
    "data": [{
        "answer": 16,
        "chapterId": 124,
        "difficulty": 4,
        "explain": "<p>驻车制动器通常是指机动车辆安装的手动刹车,简称手刹,在车辆停稳后用于稳定车辆,避免车辆在斜坡路面停车时由于溜车造成事故。此标志表示处于制动状态。<\/p>",
        "id": 18537,
        "label": "4.1.1.25",
        "mediaHeight": 160,
        "mediaType": 1,
        "mediaWidth": 160,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "机动车仪表板上(如图所示)亮时,表示驻车制动器处于制动状态。",
        "questionId": 888800,
        "mediaContent": "http:\/\/file.open.jiakaobaodian.com\/tiku\/res\/888800.jpg",
        "falseCount": 16800075,
        "trueCount": 59365437,
        "wrongRate": 0.2205732563052947
    }, {
        "answer": 16,
        "chapterId": 124,
        "difficulty": 3,
        "explain": "发动机控制系统故障,此标志亮起。",
        "id": 18583,
        "label": "4.1.1.71",
        "mediaHeight": 95,
        "mediaType": 1,
        "mediaWidth": 102,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "机动车仪表板上(如图所示)一直亮,表示发动机控制系统故障。",
        "questionId": 893400,
        "mediaContent": "http:\/\/file.open.jiakaobaodian.com\/tiku\/res\/893400.jpg",
        "falseCount": 7210913,
        "trueCount": 62949768,
        "wrongRate": 0.10277712384234126
    }, {
        "answer": 32,
        "chapterId": 124,
        "difficulty": 3,
        "explain": "<p>制动报警灯是驻车制动器及系统故障指示灯。驻车制动器操纵杆拉起时,指示灯亮,颜色为红色;松开后,指示灯熄灭。行车途中该灯亮起,表示制动系统出了问题或故障,不能上路。此题描述错误。<\/p>",
        "id": 18535,
        "label": "4.1.1.23",
        "mediaHeight": 160,
        "mediaType": 1,
        "mediaWidth": 160,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "机动车仪表板上(如图所示)亮时,不影响正常行驶。",
        "questionId": 888600,
        "mediaContent": "http:\/\/file.open.jiakaobaodian.com\/tiku\/res\/888600.jpg",
        "falseCount": 7904763,
        "trueCount": 64748371,
        "wrongRate": 0.10880140421746982
    }, {
        "answer": 16,
        "chapterId": 124,
        "difficulty": 2,
        "explain": "正确。风窗玻璃刮水器开关,控制刮水器的操作装置,大多安装在方向盘右下方转向柱上,用右手操纵,将开关手柄向下拉或向上推,可选择不同的刮刷挡位。",
        "id": 18607,
        "label": "4.1.1.95",
        "mediaHeight": 319,
        "mediaType": 1,
        "mediaWidth": 600,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "上下搬动这个开关前风窗玻璃刮水器开始工作。",
        "questionId": 895800,
        "mediaContent": "http:\/\/file.open.jiakaobaodian.com\/tiku\/res\/895800.jpg",
        "falseCount": 4819143,
        "trueCount": 63019881,
        "wrongRate": 0.07103791764456989
    }, {
        "answer": 32,
        "chapterId": 124,
        "difficulty": 2,
        "explain": "开启右转向灯,此标志亮起。",
        "id": 18556,
        "label": "4.1.1.44",
        "mediaHeight": 160,
        "mediaType": 1,
        "mediaWidth": 160,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "打开左转向灯开关,(如图所示)亮起。",
        "questionId": 890700,
        "mediaContent": "http:\/\/file.open.jiakaobaodian.com\/tiku\/res\/890700.jpg",
        "falseCount": 3165008,
        "trueCount": 64759710,
        "wrongRate": 0.046595820979337746
    }, {
        "answer": 16,
        "chapterId": 124,
        "difficulty": 1,
        "explain": "不及时加油,还可能造成汽油泵损坏。",
        "id": 32976,
        "label": "4.1.1.134",
        "mediaHeight": 0,
        "mediaType": 0,
        "mediaWidth": 0,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "行车中,燃油报警灯亮,应及时到附近加油站加油,以免造成车辆乘员滞留公路,发生交通事故。",
        "questionId": 1162800,
        "falseCount": 227925,
        "trueCount": 8122604,
        "wrongRate": 0.027294677977886192
    }, {
        "answer": 32,
        "chapterId": 123,
        "difficulty": 2,
        "explain": "预计在超车过程中与对面来车有会车可能时,应当放弃超车。若加速超越,可能引起不必要的事故。",
        "id": 18413,
        "label": "3.1.1.88",
        "mediaHeight": 0,
        "mediaType": 0,
        "mediaWidth": 0,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "预计在超车过程中与对面来车有会车可能时,应提前加速超越。",
        "questionId": 876400,
        "falseCount": 1393117,
        "trueCount": 26025846,
        "wrongRate": 0.0508085225542629
    }, {
        "answer": 16,
        "chapterId": 123,
        "difficulty": 1,
        "explain": "<p>变更车道时需要提前开启转向灯提醒后车,然后观察周围交通环境,确认安全后再驶入要变更的车道。<\/p>",
        "id": 18449,
        "label": "3.1.1.124",
        "mediaHeight": 0,
        "mediaType": 0,
        "mediaWidth": 0,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "在高速公路变更车道时,应提前开启转向灯,观察情况,确认安全后,驶入需要变更的车道。",
        "questionId": 880000,
        "falseCount": 420487,
        "trueCount": 27775024,
        "wrongRate": 0.01491326048320245
    }, {
        "answer": 32,
        "chapterId": 123,
        "difficulty": 1,
        "explain": "频繁变更车道是种陋习,而且容易引发交通事故。",
        "id": 18447,
        "label": "3.1.1.122",
        "mediaHeight": 0,
        "mediaType": 0,
        "mediaWidth": 0,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "车辆在高速公路上行车,可以频繁地变更车道。",
        "questionId": 879800,
        "falseCount": 1080231,
        "trueCount": 25978499,
        "wrongRate": 0.03992171842507021
    }, {
        "answer": 16,
        "chapterId": 123,
        "difficulty": 1,
        "explain": "<p>在汇入车流是先开转向灯的,是为了提示后面的车避让留下进入车流的空隙,保持直行一段,因为是汇入合流,要确认好车与车横向空隙就要用后视镜看左右了。 <\/p>",
        "id": 18406,
        "label": "3.1.1.81",
        "mediaHeight": 0,
        "mediaType": 0,
        "mediaWidth": 0,
        "optionA": "正确",
        "optionB": "错误",
        "optionC": "",
        "optionD": "",
        "optionE": "",
        "optionF": "",
        "optionG": "",
        "optionH": "",
        "optionType": 0,
        "question": "驾驶车辆汇入车流时,应提前开启转向灯,保持直线行驶,通过后视镜观察左右情况,确认安全后汇入合流。",
        "questionId": 875700,
        "falseCount": 707095,
        "trueCount": 27461747,
        "wrongRate": 0.025102025848275908
    }],
    "errorCode": 0,
    "message": null,
    "success": true
}
View Code

Step3:提交结果

http://www.jiakaobaodian.com/api/cloud/api/web/sync/create-exam-log.htm?_=0.3839279841631651

_r:11258564547825243087
page:1
limit:25
carStyle:car
kemuStyle:kemu1
beginTime:1471569904212
endTime:1471570891620
errorQIds:1162300,1162600,896700,1129600,1099500,1132200,886300,884300,857800,857200,858600,860000,857300,837500,859500,858400,859300,860500,1159200,824400,815900,807500,833500,814700,807300,802600,1128900,888200,891500,1160800,890100,893700,888100,1162400,872700,868800,1133000,873600,872800,874800,874600,882500,850400,849200,855400,855600,845400,839600,849700,867200,855900,845800,849400,856400,1159100,848200,840600,819400,810800,807200,824500,813700,820700,1092200,814200,1121100,827900,1092400,835000,833300,816400
rightQIds:896600,896900,890000,1098400,860300,858700,1160300,827100,812400,1158100,815200,826900,1155400,1163200,892000,881200,861500,848100,844700,838300,842100,865500,804500,1120200,802100,814100,822700,813000,808400
allIds:1162300,896600,1162600,896900,890000,896700,1129600,1099500,1132200,886300,884300,1098400,857800,857200,858600,860300,860000,857300,837500,859500,858400,859300,860500,858700,1160300,1159200,827100,824400,812400,815900,1158100,807500,815200,833500,814700,826900,1155400,807300,802600,1128900,888200,1163200,892000,891500,1160800,890100,893700,888100,1162400,872700,868800,1133000,873600,872800,881200,874800,874600,882500,850400,861500,848100,844700,849200,855400,855600,845400,839600,849700,867200,855900,838300,842100,845800,849400,856400,865500,1159100,848200,840600,804500,819400,1120200,810800,807200,824500,813700,802100,820700,1092200,814100,822700,813000,814200,1121100,827900,1092400,835000,808400,833300,816400
answers:16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,32,32,32,32,32,32,16,16,16,16,16,16,32,16,16,64,128,16,128,32,16,128,128,128,64,32,32,16,128,32,16,128,128,16,16,16,64,64,64,64,32,64,32,32,16,32,128,128,32,32,64,32,32,32,16,128,128,32,32,16,128,16,128,16,16,32,32,16,128,32,128,16
result:29
View Code

http://ke1.jiakaobaodian.com/api/open/score/submit.htm?_=0.39548609079793096

_r:1125856454782524308*
userId:a08eafa61660af4b810d6dd3c9732a5da323e92e
_imei:
_appUser:
examType:1
nickname:chzeze
avatar:http://q.qlogo.cn/qqapp/100289478/645F881B4B2088290F7ECA54DE494472/100
gender:1
cityName:**
cityCode:350800
schoolName:未报考
schoolCode:0
provinceName:福建
provinceCode:350000
carType:car
authToken:24cfb64d99d675b6b6245fb6fe99e7758383d282
mucangId:a08eafa61660af4b810d6dd3c9732a5da323e92e
areaScope:all
timeScope:month
page:1
limit:25
score:29
elapsed:987
examTime:2016-08-19 09:25:04
course:kemu1

 

你可能感兴趣的:(驾考宝典排行榜之爬虫接口解决方案)