2017 © Pedro Peláez
 

application webextractor

Extracting data from web page with different extractors like css, xpath, regex...

image

knyga/webextractor

Extracting data from web page with different extractors like css, xpath, regex...

  • Friday, November 28, 2014
  • by knyga
  • Repository
  • 3 Watchers
  • 9 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WebExtractor

Extracting data from web page with different extractors like css, xpath, regex..., (*1)

Example

Code:, (*2)

<?php

use WebExtractor\DataExtractor\DataExtractorFactory;
use WebExtractor\DataExtractor\DataExtractorTypes;
use WebExtractor\Client\Client;

$factory = DataExtractorFactory::getFactory();
$extractor = $factory->createDataExtractor(DataExtractorTypes::CSS);
$client = new Client;
$content = $client->get('https://en.wikipedia.org/wiki/2014_Winter_Olympics');
$extractor->setContent($content);
$h1 = $extractor->setSelector('h1')->extract();

For more look tests., (*3)

Installation via Composer

  • Install Composer to your project root:, (*4)

    curl -sS https://getcomposer.org/installer | php
    
  • Add a composer.json file to your project:, (*5)

    {
      "require": {
        "knyga/webextractor": "1.1.2.*@dev"
      }
    }
    
  • Run the Composer installer:, (*6)

    php composer.phar install
    

License

WebExtractor is licensed under the MIT license., (*7)

Oleksandr Knyga oleksandrknyga@gmail.com, (*8)

Sobit Akhmedov sobit.akhmedov@gmail.com, (*9)

The Versions

28/11 2014

dev-master

9999999-dev https://github.com/knyga/webextractor

Extracting data from web page with different extractors like css, xpath, regex...

  Sources   Download

MIT

The Requires

 

The Development Requires

by Oleksandr Knyga
by Sobit Akhmedov

http guzzle data extractor web goutte knyga mizzle