PHP code example of awesam86 / imlinscraper

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

    

awesam86 / imlinscraper example snippets


use Awesam86\ImlinScraper\Scraper;

$scraper = new Scraper('情報取得したいURL');

$imgsInfoArray = $scraper->GetImagesData();
//戻り値の配列を出力
var_dump($imgsInfoArray);

$linksInfoArray = $scraper->GetLinksData();
//戻り値の配列を出力
var_dump($linksInfoArray);


wesam86\ImlinScraper\Scraper;

// code...