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
Requires
- php: >=5.3.0
- paquettg/php-html-parser: ^1.6
- spatie/array-to-xml: ^2.0
This package is auto-updated.
Last update: 2024-10-29 03:48:21 UTC
README
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.