-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: 更新readme,使用composer
- Loading branch information
Showing
139 changed files
with
51 additions
and
14,404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.DS_Store | ||
/vendor | ||
/.idea | ||
/composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
#淘宝、天猫商品爬虫 | ||
# 淘宝、天猫商品爬虫 | ||
|
||
目前淘宝商品暂不可用 | ||
配置淘宝商品ID,通过Web版和H5版本的HTML、API数据结合,抓取淘宝、天猫商品的数据 | ||
|
||
##用法 | ||
## Requirement | ||
|
||
/usr/local/php/bin/php index.php | ||
## Installation | ||
|
||
## Usage | ||
|
||
```php | ||
<?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); | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "shjia/taobao_spider", | ||
"description": "淘宝、天猫商品爬虫", | ||
"type": "project", | ||
"keywords": [ | ||
"taobao-spider", | ||
"tmall-spider" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "chimu", | ||
"email": "chimu@gbokee.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5.25", | ||
"aliyuncs/oss-sdk-php": "^2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.