kadejayak / web-spider
There is no license information available for the latest version (dev-master) of this package.
Simple Website spider tools, to get all links on web pages
dev-master
2016-09-02 08:06 UTC
This package is not auto-updated.
Last update: 2025-01-13 15:31:03 UTC
README
This is simple website spider class written in PHP, it can be used to extract links from a website recursively.
Installation
Just download this class and include on your project. or by using composer
composer require kadekjayak/web-spider
##Requirements
- PHP curl
Example
the basic example to get all links from a website
use Kadekjayak\WebSpider;
$Spider = new WebSpider();
$Links = $Spider->scrape('http://example.com', $depth = 2);
print_r($Links);