Download the PHP package lapuad/taobao-tmall_spider without Composer

On this page you can find all versions of the php package lapuad/taobao-tmall_spider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package taobao-tmall_spider

taobao-tmall_spider_php

简介:淘宝、天猫商品详情数据抓取PHP版本,目前支持PC端淘宝网和天猫网站商品详情页数据抓取, 后续会考虑添加天猫超市、天猫国际以及Python版本的支持。

安装:

composer require lapuad/taobao-tmall_spider

使用示例:

use Spider\Taobao\TaobaoSpider;

$url = 'https://detail.tmall.com/item.htm?id=39571199816&ali_refid=a3_430583_1006:1109248652:N:%E9%9B%85%E8%AF%97%E5%85%B0%E9%BB%9B:5f3aed01738e158bc592eebfe8a0efb9&ali_trackid=1_5f3aed01738e158bc592eebfe8a0efb9&spm=a230r.1.14.1';

$info = TaobaoSpider::importGoods($url);

print_r($info);

返回结果:

Array ( [code] => 200 [msg] => 获取成功! [data] => Array ( [title] => 雅诗兰黛护肤套装 小棕瓶眼霜+小棕瓶精华 补水保湿修护 [images] => Array ( [0] => https://img.alicdn.com/imgextra/i4/2064892827/O1CN01d2TuSJ1WkoAjeoiYn_!!0-item_pic.jpg [1] => https://img.alicdn.com/imgextra/i4/2064892827/O1CN01xIAfe71WkoAjjk35u-2064892827.jpg [2] => https://img.alicdn.com/imgextra/i2/2064892827/O1CN01DlzAt11WkoAUwoQf4_!!2064892827.jpg [3] => https://img.alicdn.com/imgextra/i2/2064892827/O1CN011Wko84caiqRG8Lj_!!2064892827.jpg [4] => https://img.alicdn.com/imgextra/i4/2064892827/O1CN01Neups11WkoAeNMA6H_!!2064892827.jpg ) [desc] => '商品详情html' ) )

返回字段说明:

code,状态,200表示抓取成功;

msg,信息,抓取失败会提示信息;

data,数据:title=商品标题,images=商品图片,desc=商品详情HTML


All versions of taobao-tmall_spider with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
electrolinux/phpquery Version ^0.9.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lapuad/taobao-tmall_spider contains the following files

Loading the files please wait ....