| Version 3 (modified by leijingtang, 15 years ago) (diff) |
|---|
汽车网的使用的是快搜接口,所以需要遵循快搜的规则,不过前几个参数基本都是固定的 1.取所有搜索条件的接口: http://ks.pcauto.com.cn/search.jsp?q=state:1&returnType=json&appName=auto_price&clustered=cluster_brand,cluster_price,cluster_displacement,cluster_gearbox,&perPage=0
2.选择完成后提交的地址接口: http://ks.pcauto.com.cn/search.jsp?returnType=json&return=title,pic,url,price,kind_name,gearbox,displacement,cubage&appName=auto_price&q=state:1&perPage=5&clusterQuery%3D%28%28cluster_bland%3A10-15%E4%B8%87%2520OR%2520cluster_price%3A5-8%E4%B8%87%29%2520AND%2520cluster_price%3A%E6%9C%AC%E7%94%B0%29 clusterQuery参数说明:类似于如下格式,
如果是并条件,急用OR连接起来,与条件用AND,中间用空格隔开,两侧用括号包住 clusterQuery=((cluster_bland:10-15万 OR cluster_price:5-8万) AND cluster_price:本田)
电脑网的queryStr格式如下: smallType:20937 品牌:(24133 OR 47071) 蓝牙:(支持) 主屏尺寸:([0.1 TO 2]) 都是类似于key:(value)的格式,只有smallType是除外的,因为它代表小类的id 雷敬棠(雷敬棠) 15:52:01 那多选的话应该就是这样 品牌:(24133 OR 47071)?
另外不同的kv对只是用空格间隔么? 夏稳(夏稳-分机897) 15:52:25 对的
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)