manishgs / scraper
PHP package for webpage scraping
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:application
Requires
- fabpot/goutte: 2.*
This package is not auto-updated.
Last update: 2025-01-04 20:09:38 UTC
README
This package uses Goutte to crawl webpage and extract data (favicon, title, description feature image etc) from url.
Installation
Add manishgs/scraper
as a require dependency in your composer.json
file:
composer require manishgs/scraper:^0.1.0
Usage
use Scraper\Grab; // create new Grab $grab = new Grab(); // set Url $grab = $grab->setUrl('http://google.com'); // extract data $article = $grab->getInfo(); print_r($article);