An open API service indexing awesome lists of open source software.

https://github.com/shjia/taobao_spider

淘宝、天猫商品爬虫
https://github.com/shjia/taobao_spider

php spider taobao tmall

Last synced: 3 months ago
JSON representation

淘宝、天猫商品爬虫

Awesome Lists containing this project

README

          

# 淘宝、天猫商品爬虫

[![Latest Stable Version](https://poser.pugx.org/shjia/taobao_spider/v/stable)](https://packagist.org/packages/shjia/taobao_spider)
[![Total Downloads](https://poser.pugx.org/shjia/taobao_spider/downloads)](https://packagist.org/packages/shjia/taobao_spider)
[![License](https://poser.pugx.org/shjia/taobao_spider/license)](https://packagist.org/packages/shjia/taobao_spider)

配置淘宝商品ID,通过Web版和H5版本的HTML、API数据结合,抓取淘宝、天猫商品的数据

## Requirement

## Installation

```shell
composer require "shjia/taobao_spider:~1.0"
```

## Usage

```php
setItemId('569643840385');
if(empty($importModel->initGoodsPlatform())){
return;
}

$params['name'] = $importModel->getGoodsTitle();
$params['image'] = $importModel->getPreviewImg();
$params['detail'] = $importModel->getDetails();

print_r($params);

```