2017 © Pedro Peláez
 

library parser

Parser bundle

image

fiv/parser

Parser bundle

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

Fiv/Parser

Flexible way for data scraping, (*1)

Build Status GitHub version, (*2)

Installation

composer require fiv/parser:2.0.*, (*3)

Fetch all href attributes


$grabber = new \Fiv\Parser\Grabber(); $links = $grabber->getHtml('http://funivan.com')->attribute('//a/@href')->getItems(); print_r($links);

Submit form


$grabber = new \Fiv\Parser\Grabber(); $page = $grabber->getHtml('http://funivan.com/admin/'); $formData = array('name' => 'admin'); $adminPage = $grabber->submitForm($formData, '//form[@id="login"]'); $logoutLink = $adminPage->attribute('//a[@id="logout"]/@href')->getFirst(); echo $logoutLink;

Get page status


$request = new \Fiv\Parser\Request(); $request->get('http://funivan.com'); $httpCode = $request->getInfo()->getHttpCode(); echo $httpCode;

Get page and store in local cache


$request = new \Fiv\Parser\Request(); $request->setCacheAdapter(new \Fiv\Parser\Cache\FileCache()); # real request to server $page = $request->get("http://funivan.com/"); # get from cache $cachePage = $request->get("http://funivan.com/");

The Versions

27/07 2015

dev-dev-1.0

dev-dev-1.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

27/07 2015

1.10-alpha1

1.10.0.0-alpha1

Parser bundle

  Sources   Download

GPL v2

The Development Requires

27/07 2015

1.10-alpha

1.10.0.0-alpha

Parser bundle

  Sources   Download

GPL v2

The Development Requires

27/04 2015

1.0.9

1.0.9.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

15/04 2015

1.0.8

1.0.8.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

28/11 2014

dev-dev-2.0

dev-dev-2.0

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

28/11 2014

2.0.3

2.0.3.0

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

20/08 2014

2.0.2

2.0.2.0

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

18/08 2014

2.0.1

2.0.1.0

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

07/08 2014

dev-master

9999999-dev

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

05/08 2014

2.0.0

2.0.0.0

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

31/07 2014

2.0.0-alpha4

2.0.0.0-alpha4

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

30/07 2014

1.0.7

1.0.7.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

29/07 2014

1.0.6

1.0.6.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

10/06 2014

2.0.0-alpha3

2.0.0.0-alpha3

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

04/06 2014

2.0.0-alpha2

2.0.0.0-alpha2

Parser bundle

  Sources   Download

GPL v2

The Requires

 

The Development Requires

03/06 2014

2.0.0-alpha1

2.0.0.0-alpha1

Parser bundle

  Sources   Download

GPL v2

The Development Requires

03/06 2014

1.0.5

1.0.5.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

22/05 2014

1.0.4

1.0.4.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

24/01 2014

1.0.3

1.0.3.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

25/12 2013

1.0.2

1.0.2.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

24/12 2013

1.0.1

1.0.1.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires

06/12 2013

1.0

1.0.0.0

Parser bundle

  Sources   Download

GPL v2

The Development Requires