|
录制百度,并通过web_reg_save_param获取返回数据,作为查询内容,但是老报错。求教该函数该如何使用。
报错内容:
Action.c(32): Error -26377: No match found for the requested parameter "sou". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(32): web_url("su") highest severity level was "ERROR", 133 body bytes, 223 header bytes [MsgId: MMSG-26388]
详细代码:
Action()
{
web_add_cookie("BAIDUID=3B58AB7A17883DB0AB960877EC454D17:FG=1; DOMAIN=www.baidu.com");
web_add_cookie("BD_UTK_DVT=1; DOMAIN=www.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=www.baidu.com");
lr_think_time(4);
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=/js/bdsug.js?v=1.1.0.3", ENDITEM,
LAST);
//web_set_max_html_param_len("1024");
web_reg_save_param("sou","LB/IC=<meta http-equiv=Content-Type content=\"text/html;charset=gb2312\"><title>","RB/IC=</title><style>body{","Search=body",LAST); web_add_cookie("BAIDUID=3B58AB7A17883DB0AB960877EC454D17:FG=1; DOMAIN=suggestion.baidu.com");
web_add_cookie("BD_UTK_DVT=1; DOMAIN=suggestion.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=suggestion.baidu.com");
lr_think_time(4);
web_url("su",
"URL=http://suggestion.baidu.com/su?wd={sou}&p=3&t=1253852916312",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.baidu.com/",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_add_cookie("BAIDUID=3B58AB7A17883DB0AB960877EC454D17:FG=1; DOMAIN=s.baidu.com");
web_add_cookie("BD_UTK_DVT=1; DOMAIN=s.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=s.baidu.com");
web_url("s",
"URL=http://www.baidu.com/s?wd={sou}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.baidu.com/",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=http://s.baidu.com/w.gif?q={sou}&fm=se&T=1253852884&y=FC93DFF7&path=http://www.baidu.com/s?wd=32&cid=9&qid=c56af6a5007fca0f&t=1253852920000", "Referer=http://www.baidu.com/s?wd=32", ENDITEM,
LAST);
return 0;
[ 本帖最后由 shiyi1022 于 2009-9-26 11:28 编辑 ] |
|