PHP code example of pribolshoy / parseroid

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

    

pribolshoy / parseroid example snippets



dler = (new \pribolshoy\parseroid\factories\HandlerFactory())
    ->create('html_page_handler', [
        'parser_name' => 'google_parser',
        'resource' => 'https://www.google.com/search?q=php+it%27s+amazing',
    ]);
$result = $handler->getItem();
print_r($result);

//<pre>Array
//(
//    [0] => Array
//    (
//        [input_text] => php it's amazing
//    )
//
//)
//</pre>