Mr.Tolerance 发表于 2014-11-12 13:23 
就是一个品类点开后 如果有10页商品 10页的URL都是一样的
搞定了, 经反复试验, 貌似需要在httpheader加上X-Requested-with参数就行了.
- >jsondata=getURL('http://www.benlai.com/category/GetCategory?page=6&sort=0&c1SysNo=52',.opts=list(httpheader='X-Requested-With: XMLHttpRequest'))
- >substr(jsondata,1,500)
- [1] "{\"markIndex\":null,\"Content\":[{\"ProductID\":\"0804011441C\",\"ProductLink\":\"/item-39203.html\",\"ProductName\":\"福味珍旗鱼松300g-----台湾进口 富含天然鱼油(DHA)\",\"BasicPrice\":\"¥66.00\",\"CurrentPrice\":\"¥49.80\",\"Invotory\":0,\"tag1\":\"\",\"tag2\":\"进口\",\"tag3\":\"http://image1.benlailife.com/Content/images/tag/43.gif?v=8.2.49\",\"BriefNamePromotionWord\":\"福味珍旗鱼松300g-----台湾进口<font class=\\\"cleb6100 ml5\\\">富含天然鱼油(DHA)</font>\",\"ProductBigPSrc\":\"http://image1.benlailife.com/ProductImage/0804011441C.jpg onerror=this.onerror=null;this.src="
复制代码接下来可以用rjson/XML这类工具解析.