shjia/taobao_spider

淘宝、天猫商品爬虫

Installs: 796

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 3

Forks: 8

Open Issues: 0

Type:project

v1.0.0 2018-06-11 14:20 UTC

This package is not auto-updated.

Last update: 2024-11-10 06:22:55 UTC


README

Latest Stable Version Total Downloads License

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

Requirement

Installation

composer require "shjia/taobao_spider:~1.0"

Usage

<?php
require_once 'src/spider.php';

use Ezspider\spider;

$importModel = new \Ezspider\spider;

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

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


print_r($params);