PHP code example of nordicalf / zenscrape
1. Go to this page and download the library: Download nordicalf/zenscrape 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/ */
nordicalf / zenscrape example snippets
$queryRequest = new QueryRequestModel();
$queryRequest->setRender(true);
$queryRequest->setLocation('eu');
$queryRequest->setUrl('https://www.php.net/');
$headersRequest = new HeaderRequestModel();
$headersRequest->setCustomHeader('Content-Type', 'application/json');
$zenscrapeClient = new ZenscrapeClient('YOUR_API_KEY_FROM_ZENSCRAPE.COM');
echo $zenscrapeClient->getPage('POST', $queryRequest, $headersRequest);