sohib/crawler

Scan Http URLs from a url containing an HTML and get Json or Xml or Array

v1.0.1 2015-12-30 07:38 UTC

This package is auto-updated.

Last update: 2024-04-29 02:54:05 UTC


README

Latest Version on Packagist Software License Total Downloads

Scan Http URLs from a url containing an HTML and get Json or Xml or Array.

Note

Im not going to maintain this package, i didit just to learn how to create Composer Package.

Install

Via Composer

$ composer require sohib/crawler

Usage

use Sohib\Crawler;



$urls = [
    "http://thatsthefinger.com/",
    "http://just-shower-thoughts.tumblr.com/",
    "http://ducksarethebest.com/",
];

$crowler  = new Crawler\Scanner($urls);
$scanner = $crowler->scan();
var_dump($scanner->toArray()); // return urls as array
var_dump($scanner->toJson());  // return urls as json
var_dump($scanner->toXml()); // return urls as Xml

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

License

The MIT License (MIT). Please see License File for more information.