PHP Classes


Recommend this page to a friend!
  Classes of Evaldo Barbosa  >  Puller  >  >  Download  
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Puller
Scrape product data pages from e-commerce sites
Author: By
Last change: Update of
Date: 7 months ago
Size: 1,360 bytes


Class file image Download

You will get all needed information about a product in brazilian e-commerce sites.

Simple to use, PP is the way to collect data about a product in brazilian e-commerce including price, description and picture.

See the code of tests.

To run the test:

$ bin/phpunit -c tests/phpunit.xml --group=Info


* Getting information from products

use Puller\Target\SubmarinoProductInfo;

$productid = 111970051;

$p = new SubmarinoProductInfo( $productid );
echo $p->productId, "\n", $p->productName, "\n";
print_r( $p->productTable );

$p = new NetShoesProductInfo( '094-0460-014-03' );
echo $p->productId, "\n", $p->productName, "\n";
print_r( $p->productTable );

$p = new PontoFrioProductInfo( 'TelefoneseCelulares/Smartphones/Celular-Desbloqueado-Motorola-RAZR-i-Preto-com-Processador-Intel-de-2-GHz-Tela-de-4-3’’-Android-4-0-Camera-8MP-Wi-Fi-3G-NFC-GPS-e-Bluetooth-1748861.html' );
echo $p->productId, "\n", $p->productName, "\n";
print_r( $p->productTable );

## Important

> *This software now is under LPGLv3. Se this:*<br/>
> **
> Winner - June 2013
> <img src=""/><br/>
For more information send a message to info at phpclasses dot org.