A PHP Package for Web Scraping with Scraping.link. Scraping Link allows you to scrape any website and solve typical blocking complications.
You can install the package via composer:
composer require scrapinglink/php-scraping-link
use Scrapinglink\PhpScrapingLink\ScrapingLink;
$scrapingLink = new ScrapingLink('LZIK69Bfg2km3VDG1oyHnwo1RMIymIYgChuocgypoqyQstGeonVpS6iNBMTz');
$response = $scrapingLink->scrape('https://google.com');
echo "Status code: " . $response->status();
echo "Body: " . $response->body();
$response = $scrapingLink->scrape('https://google.com', true);
echo "Status code: " . $response->status();
echo "Body: " . $response->body();
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.