1. Go to this page and download the library: Download truercm/laravel-webscrape 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/ */
truercm / laravel-webscrape example snippets
return [
/*
|--------------------------------------------------------------------------
| Webscrape models
|--------------------------------------------------------------------------
*/
'models' => [
/*
|--------------------------------------------------------------------------
| Subject model holds the credentials, target_id and the final scraping result
|--------------------------------------------------------------------------
*/
'subject' => TrueRcm\LaravelWebscrape\Models\CrawlSubject::class,
/*
|--------------------------------------------------------------------------
| Target model stores the remote target, authentication url and processing job
|--------------------------------------------------------------------------
*/
'target' => TrueRcm\LaravelWebscrape\Models\CrawlTarget::class,
/*
|--------------------------------------------------------------------------
| TargetUrl model collects all URLs for the Target
|--------------------------------------------------------------------------
*/
'target_url' => TrueRcm\LaravelWebscrape\Models\CrawlTargetUrl::class,
/*
|--------------------------------------------------------------------------
| Url Result model stores processed results
|--------------------------------------------------------------------------
*/
'result' => TrueRcm\LaravelWebscrape\Models\CrawlResult::class,
],
/*
|--------------------------------------------------------------------------
| Selenium driver url
|--------------------------------------------------------------------------
*/
'selenium_driver_url' => env('SELENIUM_DRIVER_URL', null),
];