dayrev / extractor
Web Page Content Extractor
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dayrev/extractor
Requires
- php: ^7.0
- embedly/embedly-php: ^0.5
- scotteh/php-goose: ^0.4
Requires (Dev)
- phpunit/phpunit: ^5.7
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^2.8
This package is not auto-updated.
Last update: 2025-10-04 19:41:03 UTC
README
Overview
Extractor provides an elegant interface to extract content from a URL using a variety of third-party providers.
Supported Providers
Installation
Run the following composer command to add the package to your project:
composer require dayrev/extractor
Alternatively, add "dayrev/extractor": "^1.0"
to your composer.json file.
Usage
$extractor = DayRev\Extractor\Provider::instance('embedly', ['api_key' => 'YOURKEYHERE']); $content = $extractor->extract('http://www.espn.com/espn/wire/_/section/ncf/id/18398497');
Tests
To run the test suite, run the following commands from the root directory:
composer install
vendor/bin/phpunit -d embedly_api_key=YOUR_EMBEDLY_API_KEY
Note: A valid Embedly API key is required when running the integration tests.