https://github.com/shjia/taobao_spider
淘宝、天猫商品爬虫
https://github.com/shjia/taobao_spider
php spider taobao tmall
Last synced: 3 months ago
JSON representation
淘宝、天猫商品爬虫
- Host: GitHub
- URL: https://github.com/shjia/taobao_spider
- Owner: shjia
- License: mit
- Created: 2018-06-08T14:24:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T02:16:04.000Z (almost 8 years ago)
- Last Synced: 2025-12-14T05:49:42.574Z (6 months ago)
- Topics: php, spider, taobao, tmall
- Language: PHP
- Size: 145 KB
- Stars: 16
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 淘宝、天猫商品爬虫
[](https://packagist.org/packages/shjia/taobao_spider)
[](https://packagist.org/packages/shjia/taobao_spider)
[](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);
```