PHP code example of sezerfidanci / productbot

1. Go to this page and download the library: Download sezerfidanci/productbot 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/ */

    

sezerfidanci / productbot example snippets



  use ProductBot\ProductBot;
  ...
  ...
  $product = new ProductBot();
  $response = $product->crawPage("https://www.adidas.com.tr/tr/3-bantli-tisort/CW1202.html");
  echo json_encode($response);