|
本帖最后由 开着拖拉机上班 于 2017-7-27 15:32 编辑
终于鼓捣成功了,他娘的,保存一下:
//获取 coverageDetail_actualId
web_reg_save_param("getCoverageDetail_actualId",
"LB=coverageDetail\":[",
"RB=,",
"Ord=ALL",
"SaveOffset=27",
"IgnoreRedirections=Yes",
LAST);
web_custom_request
count=atoi(lr_eval_string("{getCoverageDetail_actualId_count}"));
lr_error_message("抓取到的getCoverageDetail_actualId数量:%d",count);
for(i=1;i<=count;i++){
sprintf(param,"{getCoverageDetail_actualId_%d}",i);
lr_error_message(param);
}
//检查下抓到的值是否是你想要的!!!
lr_error_message(lr_eval_string(param[1]));
lr_error_message(lr_eval_string(param[2]));
lr_error_message(lr_eval_string(param[3]));
lr_error_message(lr_eval_string(param[4]));
lr_error_message(lr_eval_string(param[5]));
lr_error_message(lr_eval_string(param[6]));
下面是输出:
Error | 567 | Action.c(567): Error: 抓取到的getCoverageDetail_actualId数量:6 | Action.c |
| | Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_1} | Action.c | |
| Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_2} | Action.c |
| | Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_3} | Action.c |
| | Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_4} | Action.c |
| | Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_5} | Action.c |
| | Error | 570 | Action.c(570): Error: {getCoverageDetail_actualId_6} | Action.c |
| | Error | 573 | Action.c(573): Error: 180516488 | Action.c |
| | Error | 574 | Action.c(574): Error: 180516493 | Action.c |
| | Error | 575 | Action.c(575): Error: 180516998 | Action.c |
| | Error | 576 | Action.c(576): Error: 180517003 | Action.c |
| | Error | 577 | Action.c(577): Error: 180517008 | Action.c |
| | Error | 578 | Action.c(578): Error: 180517013 | Action.c |
| |
|
|