|
大家好!
我录制的是http://bus.mapbar.com 这个地图网站,搜索公交车路线,录制的脚本部分如下:
。。。。。。。。。。。。。
web_url("getAutoSuggestKeyword.jsp",
"URL=http://suggest.mapbar.com/json/getAutoSuggestKeyword.jsp?keyword=de&city=%E5%8C%97%E4%BA%AC%E5%B8%82", /*北京*/
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://bus.mapbar.com/",
"Snapshot=t24.inf",
LAST);
web_url("getAutoSuggestKeyword.jsp_2",
"URL=http://suggest.mapbar.com/json/getAutoSuggestKeyword.jsp?keyword=%E5%BE%B7&city=%E5%8C%97%E4%BA%AC%E5%B8%82",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://bus.mapbar.com/",
"Snapshot=t25.inf",
LAST);
web_url("getAutoSuggestKeyword.jsp_3",
"URL=http://suggest.mapbar.com/json/getAutoSuggestKeyword.jsp?keyword=%E5%BE%B7%E8%83%9C&city=%E5%8C%97%E4%BA%AC%E5%B8%82",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://bus.mapbar.com/",
"Snapshot=t26.inf",
LAST);
web_url("getAutoSuggestKeyword.jsp_4",
"URL=http://suggest.mapbar.com/json/getAutoSuggestKeyword.jsp?keyword=%E5%BE%B7%E8%83%9C%E9%97%A8&city=%E5%8C%97%E4%BA%AC%E5%B8%82", /*德胜门--天安门*/
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://bus.mapbar.com/",
"Snapshot=t27.inf",
LAST);
web_url("getAutoSuggestKeyword.jsp_5",
"URL=http://suggest.mapbar.com/json/getAutoSuggestKeyword.jsp?keyword=%E7%BB%88%E7%82%B9(%E5%A6%82:%E5%AE%89%E5%AE%9A%E9%97%A8)&city=%E5%8C%97%E4%BA%AC%E5%B8%82",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://bus.mapbar.com/",
"Snapshot=t28.inf",
LAST);
查询的是北京,“德胜门”到 “天安门” 的线路,以上红色标出的:%20%E5%BE%B7%E8%83%9C%E9%97%A8(在查询“德胜门”的时候url链接中出现的)、%E5%A4%A9%E5%AE%89%E9%97%A8(“天安门”)、%E5%8C%97%E4%BA%AC%E5%B8%82(“北京”)
我想要参数化的地方是搜索地点,比如说把录制的时候的“德胜门”到 “天安门” 参数化为“朝阳门”到“故宫”之类的。上边的%20%E5%BE%B7%E8%83%9C%E9%97%A8之类的应该是“德胜门”编译出来的一些东东吧!!! 也应该是要参数化的地方了,但是我这种情况应该怎样参数化呢????
请大家指教!!说说!!! |
|