PHP code example of luler / spider_product_info
1. Go to this page and download the library: Download luler/spider_product_info library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
luler / spider_product_info example snippets
injectablephp
$spider = new \SpiderProductInfo\SpiderProductInfoHelper([
'proxy_server' => '121.127.241.235:32081',
]);
$info = $spider->info('https://detail.tmall.com/item.htm?id=631833014942&skuId=4676531095838', true);
dump($info);