PHP Classes

PHP URL Extractor: Extract URLs of images and metadata from Web pages

Recommend this page to a friend!
  Info   View files Example   View files View files (67)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-03 (8 days ago) RSS 2.0 feedNot enough user ratingsTotal: 425 This week: 4All time: 6,340 This week: 71Up
Version License PHP version Categories
url-extractor 1.0.1GNU General Publi...5PHP 5, Web services
Description 

Author

This class can extract URLs of images and metadata from Web pages.

It can take the URL of a given remote page and retrieve it to parse the HTML.

The class can extract the URLs of images and metadata information like the page title, keywords, description, etc..

Picture of João Ribeiro
  Performance   Level  

 

Example

<?php

require_once '../src/UrlExtractor/UrlExtractor.php';

$urlExtractor = new \rollbackpt\UrlExtractor\UrlExtractor();
$metaTags = $urlExtractor->extractAll("https://github.com/rollbackpt", false);
echo
"<h2>Meta tags from -> https://github.com/rollbackpt</h2>";
echo
"<pre>";
var_dump($metaTags);
echo
"</pre>";

// Or using composer autoload...
// Install using: composer require rollbackpt/url-extractor

// require __DIR__ . "/../vendor/autoload.php";
//
// use rollbackpt\UrlExtractor\UrlExtractor;
//
// $urlExtractor = new UrlExtractor();
// $metaTags = $urlExtractor->extractAll("https://github.com/rollbackpt", false);
// echo "<h2>Meta tags from -> https://github.com/rollbackpt</h2>";
// echo "<pre>";
// var_dump($metaTags);
// echo "</pre>";


Details

URLExtractor v1.0.0

travis-build

PHP Class to extract images and meta data information from URLs

Usage

With composer:

composer require rollbackpt/url-extractor

... or manually:

require_once 'src/UrlExtractor/UrlExtractor.php';
$urlExtractor = new \rollbackpt\UrlExtractor\UrlExtractor();
echo $urlExtractor->extractAll("http://some-url.com");

Demo Screenshots

Test the demo here: http://urlextractor.joaoperibeiro.com/demo/index.html

urlextractor1 urlextractor2 urlextractor3

About the author - Email: joaopedrocr@gmail.com - Blog: http://joaoperibeiro.com - Personal Page: http://joaopcribeiro.branded.me


  Files folder image Files  
File Role Description
Files folder imagedemo (3 files, 1 directory)
Files folder imagedocs (2 files, 9 directories)
Files folder imagesrc (1 directory)
Files folder imagetests (1 file, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:425
This week:4
All time:6,340
This week:71Up