2017 © Pedro Peláez
 

library extractors

Extractor is a package that find targeted types of resources in html dom.

image

hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  • Friday, May 18, 2018
  • by hedii
  • Repository
  • 1 Watchers
  • 4 Stars
  • 800 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

Build Status, (*1)

Extractors

Extractor is a package that find targeted types of resources in html dom. Currently, only 2 types of resources are available: urls and emails. The found resources are returned as an array., (*2)

The Extractor class can be extended to add more resources types., (*3)

Install

Via Composer, (*4)

``` bash composer require hedii/extractors, (*5)


### Usage Currently, only 2 types of resources are available: urls and emails. ``` php // require composer autoloader require '/path/to/vendor/autoload.php'; // instantiate $extractor = new \Hedii\Extractors\Extractor(); // get all the urls on example.com page dom $urls = $extractor->searchFor(['urls']) ->at('http://example.com') ->get(); // get all the emails on example.com page dom $emails = $extractor->searchFor(['emails']) ->at('http://example.com') ->get(); // get all the urls and emails on example.com page dom $urlsAndEmails = $extractor->searchFor(['urls', 'emails']) ->at('http://example.com') ->get();

Testing

bash composer test, (*6)

The Versions

18/05 2018

dev-master

9999999-dev https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors

18/05 2018

2.1.0

2.1.0.0 https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors

20/01 2018

2.0.0

2.0.0.0 https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors

13/05 2016

dev-develop

dev-develop https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors

13/05 2016

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors

22/02 2016

1.0.0

1.0.0.0 https://github.com/hedii/extractors

Extractor is a package that find targeted types of resources in html dom.

  Sources   Download

MIT

The Requires

 

The Development Requires

hedii extractors