PHPackages                             lapuad/taobao-tmall\_spider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. lapuad/taobao-tmall\_spider

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

lapuad/taobao-tmall\_spider
===========================

淘宝、天猫商品详情数据抓取PHP版本，目前支持PC端淘宝网和天猫网站商品详情页数据抓取，后续会考虑添加天猫超市、天猫国际以及Python版本的支持。It's a php spider for crawling goods data from taobao.com and tmall.com. A python3 version spider will also be available later.

v1.0.1(7y ago)91755[1 issues](https://github.com/lapuadson/taobao-tmall_spider_php/issues)MITPHP

Since Jan 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/lapuadson/taobao-tmall_spider_php)[ Packagist](https://packagist.org/packages/lapuad/taobao-tmall_spider)[ RSS](/packages/lapuad-taobao-tmall-spider/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

taobao-tmall\_spider\_php
=========================

[](#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&amp;ali\_refid=a3\_430583\_1006:1109248652:N:%E9%9B%85%E8%AF%97%E5%85%B0%E9%BB%9B:5f3aed01738e158bc592eebfe8a0efb9&amp;ali\_trackid=1\_5f3aed01738e158bc592eebfe8a0efb9&amp;spm=a230r.1.14.1](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\] =&gt; 200 \[msg\] =&gt; 获取成功！ \[data\] =&gt; Array ( \[title\] =&gt; 雅诗兰黛护肤套装 小棕瓶眼霜+小棕瓶精华 补水保湿修护 \[images\] =&gt; Array ( \[0\] =&gt; [https://img.alicdn.com/imgextra/i4/2064892827/O1CN01d2TuSJ1WkoAjeoiYn\_!!0-item\_pic.jpg](https://img.alicdn.com/imgextra/i4/2064892827/O1CN01d2TuSJ1WkoAjeoiYn_!!0-item_pic.jpg)\[1\] =&gt; \[2\] =&gt; [https://img.alicdn.com/imgextra/i2/2064892827/O1CN01DlzAt11WkoAUwoQf4\_!!2064892827.jpg](https://img.alicdn.com/imgextra/i2/2064892827/O1CN01DlzAt11WkoAUwoQf4_!!2064892827.jpg)\[3\] =&gt; [https://img.alicdn.com/imgextra/i2/2064892827/O1CN011Wko84caiqRG8Lj\_!!2064892827.jpg](https://img.alicdn.com/imgextra/i2/2064892827/O1CN011Wko84caiqRG8Lj_!!2064892827.jpg)\[4\] =&gt; [https://img.alicdn.com/imgextra/i4/2064892827/O1CN01Neups11WkoAeNMA6H\_!!2064892827.jpg](https://img.alicdn.com/imgextra/i4/2064892827/O1CN01Neups11WkoAeNMA6H_!!2064892827.jpg)) \[desc\] =&gt; '商品详情html' ) )

返回字段说明：

code，状态，200表示抓取成功；

msg，信息，抓取失败会提示信息；

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b55413fa2ad9b1286ddc28dff8bc997f6177534dc0636711c6cc53c24ef21ccc?d=identicon)[Lapuad](/maintainers/Lapuad)

---

Top Contributors

[![lapuadson](https://avatars.githubusercontent.com/u/18232509?v=4)](https://github.com/lapuadson "lapuadson (1 commits)")

---

Tags

taobaotmalltaobao\_spidertmall\_spider

### Embed Badge

![Health badge](/badges/lapuad-taobao-tmall-spider/health.svg)

```
[![Health](https://phpackages.com/badges/lapuad-taobao-tmall-spider/health.svg)](https://phpackages.com/packages/lapuad-taobao-tmall-spider)
```

###  Alternatives

[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9738.8k](/packages/sauladam-shipment-tracker)[shjia/taobao_spider

淘宝、天猫商品爬虫

161.2k](/packages/shjia-taobao-spider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
