|
脚本:
#include "web_api.h"
Action()
{
web_add_cookie("REF=ID=e361092731fc1837:NW=1:TM=1236832339M=1236832339:S=0mYhdI50NcNVyp76; DOMAIN=www.google.cn");
web_add_cookie("NID=21=sYgB7spAZy1F2x7Vpw5riyrlNh5EFWzLXu-MSWsQbK2MPVlYjUjpKMdWQQ1PTdip8unVrMyo6UtQ7CXbHqvgmC8FgO_7yY1yHUmxZ5fmap9qnClYsbv5EyGrRPDkznvV; DOMAIN=www.google.cn");
web_url("webhp",
"URL=http://www.google.cn/webhp?source=g_cn",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/extern_js/f/CgV6aC1DThICY24rMAo4DUACLCswDjgFLCswETgQLCswFjgJLCswFzgBLCswGDgDLCswJTjJiAEsKzAmOAQsKzAnOAAs/IfRECXLbJC8.js", "Referer=http://www.google.cn/webhp?source=g_cn", ENDITEM,
"Url=/images/nav_logo4.png", "Referer=http://www.google.cn/webhp?source=g_cn", ENDITEM,
"Url=/intl/zh-CN/images/toolbar_animation_20090316.png", "Referer=http://www.google.cn/webhp?source=g_cn", ENDITEM,
LAST);
web_url("csi",
"URL=http://www.google.cn/csi?v=3&s=webhp&action=&tran=undefined&ei=QfPbSZLeKIuBkQX8w93eCA&e=17259,20233&rt=prt.16,ol.2250,xjs.2469",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/webhp?source=g_cn",
"Mode=HTML",
LAST);
lr_think_time( 5 );
web_url("search",
"URL=http://www.google.cn/search?hl=zh-CN&q=&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/webhp?source=g_cn",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=/extern_js/f/CgV6aC1DThICY24rMAo4DUACLCswDjgFLCswETgQLCswFjgJLCswFzgBLCswGDgDLCswJTjJiAEsKzAmOAQsKzAnOAAs/IfRECXLbJC8.js", "Referer=http://www.google.cn/webhp?hl=zh-CN&btnG=Google+%E6%90%9C%E7%B4%A2", ENDITEM,
"Url=/images/nav_logo4.png", "Referer=http://www.google.cn/webhp?hl=zh-CN&btnG=Google+%E6%90%9C%E7%B4%A2", ENDITEM,
LAST);
web_url("csi_2",
"URL=http://www.google.cn/csi?v=3&s=webhp&action=&tran=undefined&ei=TPPbSazMHI6HkQW-o9jMCA&e=17259,20233&rt=prt.0,ol.281,xjs.422",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/webhp?hl=zh-CN&btnG=Google+%E6%90%9C%E7%B4%A2",
"Mode=HTML",
EXTRARES,
"Url=/intl/zh-CN/images/toolbar_animation_20090316.png", "Referer=http://www.google.cn/webhp?hl=zh-CN&btnG=Google+%E6%90%9C%E7%B4%A2", ENDITEM,
LAST);
return 0;
}
报错日志:
Error -27796: Failed to connect to server "127.0.0.1:9415": [10061] Connection refused [MsgId: MERR-27796]
Fatal Error -27098: Could not download the proxy automatic configuration script (URL="http://127.0.0.1:9415/tudouva.pac"). See previous messages. Refer to the 'Run-time settings/Internet Protocol/Proxy' [MsgId: MERR-27098]
Fatal Error -27072: The URL of the proxy automatic configuration script was explicitly specified in "Run-time settings/Internet Protocol/Proxy". Aborting [MsgId: MERR-27072] |
|