PHP code example of aprillins / litegrabber

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

    

aprillins / litegrabber example snippets


$liteGrabber = new LiteGrabber($url);

$query = $liteGrabber->div([], true)->a()->atSrc()->getQuery();

$query = $liteGrabber->div()->a()->atSrc()->getQuery();

$liteGrabber->getResult();

div(['class' => 'post-wrapper home'], true)