2017 © Pedro Peláez
 

module simple-page-crawler

ZF3 module v0.3.0 - Provide a crawler to get web page informations : title, meta, heading tags and images

image

buse974/simple-page-crawler

ZF3 module v0.3.0 - Provide a crawler to get web page informations : title, meta, heading tags and images

  • Monday, December 11, 2017
  • by buse974
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,239 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

ZF2 SimplePageCrawler module

Version 0.3.0 Created by Vincent Blanchon, (*1)

Introduction

SimplePageCrawler is a web page crawler. You can get informations :, (*2)

  • Title
  • Meta (decsription, open graph, etc.)
  • H1, H2, etc.
  • List of the images
  • List of the links

Usage

Get page informations :, (*3)

$crawler = $this->getServiceLocator('SimplePageCrawler');
$page = $crawler->get('http://www.nytimes.com');

echo sprintf('The title is "%s"', $page->getTitle());
echo sprintf('The description is "%s"', $page->getMeta('description'));

You can use th action helper :, (*4)

$page = $this->simplePageCrawler('http://www.nytimes.com');

echo sprintf('The title is "%s"', $page->getTitle());
echo sprintf('The description is "%s"', $page->getMeta('description'));

Advanced usage

You can get Open graph metadatas :, (*5)

$page = $this->simplePageCrawler('http://www.nytimes.com');
$metas = $page->getMeta()->getOpenGraph();

The Versions

11/12 2017

dev-master

9999999-dev https://github.com/blanchonvincent/SimplePageCrawler

ZF3 module v0.3.0 - Provide a crawler to get web page informations : title, meta, heading tags and images

  Sources   Download

MIT

The Requires

 

22/01 2013

0.3.0

0.3.0.0 https://github.com/blanchonvincent/SimplePageCrawler

ZF2 module v0.3.0 - Provide a crawler to get web page informations : title, meta, heading tags and images

  Sources   Download

MIT

The Requires