2017 © Pedro Peláez
 

library smart-scraper

A smart PHP web scraper.

image

refactors/smart-scraper

A smart PHP web scraper.

  • Tuesday, June 9, 2015
  • by hacdias
  • Repository
  • 3 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

PHP Smart Scraper

Latest Stable Version Total Downloads License, (*1)

Smart Scraper is a PHP scraper to scrape information from web pages. It can help you doing that horrible task in a very easy and smart way., (*2)

Installation

Smart Scrapper needs PHP 5.6.0+ and you can use it via Composer:, (*3)

composer require refactores/smart-scraper, (*4)

Usage

Create a Smart Scraper instance:, (*5)

$scraper = new SmartScraper\Parser($theUrlYouWantToScrape);

Then, if you want to save the text of some selector, you should use:, (*6)

$scraper->saveText($name, $expression, [$attribute = null]);

The value is saved on $scraper->{$name}. Example:, (*7)

$scraper->saveText( 'nick', '.header h1' );
echo $scraper->nick;

If you just want to receive the HTML you must use:, (*8)

$scraper->saveHtml($name, $expression, [$index = 0]);

The $index referes to the position of the element in the page in the case of having more than one., (*9)

The Versions

09/06 2015

dev-master

9999999-dev https://github.com/refactors/smart-scraper

A smart PHP web scraper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

24/05 2015

v0.0.7

0.0.7.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

24/05 2015

v0.0.8

0.0.8.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

23/05 2015

0.0.5

0.0.5.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

23/05 2015

v0.0.6

0.0.6.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

22/05 2015

v0.0.4

0.0.4.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

22/05 2015

v0.0.3

0.0.3.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

19/05 2015

v0.0.2

0.0.2.0 https://github.com/unknown-exceptions/smart-scrapper

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias

parser scraper

19/05 2015

v0.0.1

0.0.1.0

A smart PHP web scrapper.

  Sources   Download

MIT

The Requires

 

by Luis Soares
by Henrique Dias