Heim  >  Artikel  >  Backend-Entwicklung  >  关于淘宝api或许自己写规则抓taobao产品的信息

关于淘宝api或许自己写规则抓taobao产品的信息

WBOY
WBOYOriginal
2016-06-13 12:58:16852Durchsuche

关于淘宝api或者自己写规则抓taobao产品的信息
想问问,taobao有没有提供一个api,就是通过输入淘宝的产品的详细页面,能得到产品的名称,图片,价格,规格

如果说taobao没有提供这个功能,自己可不可以用php写个来抓呢?
------解决方案--------------------
你是要做淘宝客对吧。

这个功能有的。
首先 open.taobao.com 注册登录。

http://my.open.taobao.com/isv/modifyIsvInfo.htm

这个地址是淘宝开放平台的。自己下载 api包,然后根据他的提示进行操作。

比如 http://api.taobao.com/apidoc/api.htm?path=cid:1-apiId:21348
页面打开最底下。有实例 调用方法,比如PHP的调用方法是:

【获取单个商品的详细】
$c = new TopClient;
$c->appkey = appkey;
$c->secretKey = secret;
$req = new ItemGetRequest;
$req->setFields("num_iid,title,price");
$req->setNumIid(3838293428);
$req->setTrackIid("123_track_456");
$resp = $c->execute($req, $sessionKey);




------解决方案--------------------
我以前做过淘宝api开发。。这个功能是api最基础的。。好像taobao.item.get就能实现。。具体的还得参考文档。。不过肯定是有这个功能的。。下载个sdk研究下,,

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn