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  
Name: Joćo Ribeiro <contact>
Classes: 1 package by
Country: Portugal Portugal

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

  Files folder image Files  /  demo  
File Role Description
Files folder imageassets (1 directory)
  Accessible without login Plain text file example.php Example Example script
  Accessible without login HTML file index.html Data Sample document
  Accessible without login Plain text file urlinfo.php Example Example script

  Files folder image Files  /  demo  /  assets  
File Role Description
Files folder imageimg (1 file)

  Files folder image Files  /  demo  /  assets  /  img  
File Role Description
  Accessible without login Image file loading.gif Icon Icon image

  Files folder image Files  /  docs  
File Role Description
Files folder imageclasses (1 file)
Files folder imagecss (5 files, 1 directory)
Files folder imagefiles (2 files)
Files folder imagefont (1 file)
Files folder imagegraphs (2 files)
Files folder imageimages (12 files, 1 directory)
Files folder imagejs (10 files, 1 directory)
Files folder imagenamespaces (3 files)
Files folder imagereports (3 files)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files  /  docs  /  classes  
File Role Description
  Accessible without login HTML file rollbackpt.UrlExtr...r.UrlExtractor.html Doc. Documentation

  Files folder image Files  /  docs  /  css  
File Role Description
Files folder imagephpdocumentor-clean-icons (3 files, 1 directory)
  Accessible without login Plain text file bootstrap-combined.no-icons.min.css Data Auxiliary data
  Accessible without login Plain text file font-awesome.min.css Data Auxiliary data
  Accessible without login Plain text file jquery.iviewer.css Data Auxiliary data
  Accessible without login Plain text file prism.css Data Auxiliary data
  Accessible without login Plain text file template.css Data Auxiliary data

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  
File Role Description
Files folder imagefonts (2 files)
  Accessible without login Plain text file lte-ie7.js Data Auxiliary data
  Accessible without login Plain text file Read Me.txt Doc. Documentation
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  docs  /  css  /  phpdocumentor-clean-icons  /  fonts  
File Role Description
  Accessible without login Plain text file phpdocumentor-clean-icons.dev.svg Data Auxiliary data
  Accessible without login Plain text file phpdocumentor-clean-icons.svg Data Auxiliary data

  Files folder image Files  /  docs  /  files  
File Role Description
  Accessible without login HTML file UrlExtractor.html Doc. Documentation
  Accessible without login Plain text file UrlExtractor.php.txt Doc. Documentation

  Files folder image Files  /  docs  /  font  
File Role Description
  Accessible without login Plain text file fontawesome-webfont.svg Data Auxiliary data

  Files folder image Files  /  docs  /  graphs  
File Role Description
  Accessible without login HTML file class.html Doc. Documentation
  Accessible without login Plain text file classes.svg Data Auxiliary data

  Files folder image Files  /  docs  /  images  
File Role Description
Files folder imageiviewer (8 files)
  Accessible without login Image file apple-touch-icon-114x114.png Icon Icon image
  Accessible without login Image file apple-touch-icon-72x72.png Icon Icon image
  Accessible without login Image file apple-touch-icon.png Icon Icon image
  Accessible without login Plain text file custom-icons.svg Data Auxiliary data
  Accessible without login Image file favicon.ico Data Auxiliary data
  Accessible without login Image file hierarchy-item.png Icon Icon image
  Accessible without login Image file icon-class-13x13.png Icon Icon image
  Accessible without login Plain text file icon-class.svg Data Auxiliary data
  Accessible without login Image file icon-interface-13x13.png Icon Icon image
  Accessible without login Plain text file icon-interface.svg Data Auxiliary data
  Accessible without login Image file icon-trait-13x13.png Icon Icon image
  Accessible without login Plain text file icon-trait.svg Data Auxiliary data

  Files folder image Files  /  docs  /  images  /  iviewer  
File Role Description
  Accessible without login Image file grab.cur Data Auxiliary data
  Accessible without login Image file hand.cur Data Auxiliary data
  Accessible without login Image file iviewer.rotate_left.png Icon Icon image
  Accessible without login Image file iviewer.rotate_right.png Icon Icon image
  Accessible without login Image file iviewer.zoom_fit.png Icon Icon image
  Accessible without login Image file iviewer.zoom_in.png Icon Icon image
  Accessible without login Image file iviewer.zoom_out.png Icon Icon image
  Accessible without login Image file iviewer.zoom_zero.png Icon Icon image

  Files folder image Files  /  docs  /  js  
File Role Description
Files folder imageui (1 directory)
  Accessible without login Plain text file bootstrap.min.js Data Auxiliary data
  Accessible without login Plain text file html5.js Data Auxiliary data
  Accessible without login Plain text file jquery-1.11.0.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.dotdotdot-1.5.9.js Data Auxiliary data
  Accessible without login Plain text file jquery.dotdotdot-1.5.9.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.iviewer.js Data Auxiliary data
  Accessible without login Plain text file jquery.iviewer.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.mousewheel.js Data Auxiliary data
  Accessible without login Plain text file jquery.smooth-scroll.js Data Auxiliary data
  Accessible without login Plain text file prism.min.js Data Auxiliary data

  Files folder image Files  /  docs  /  js  /  ui  
File Role Description
Files folder image1.10.4 (1 file)

  Files folder image Files  /  docs  /  js  /  ui  /  1.10.4  
File Role Description
  Accessible without login Plain text file jquery-ui.min.js Data Auxiliary data

  Files folder image Files  /  docs  /  namespaces  
File Role Description
  Accessible without login HTML file default.html Doc. Documentation
  Accessible without login HTML file rollbackpt.html Doc. Documentation
  Accessible without login HTML file rollbackpt.UrlExtractor.html Doc. Documentation

  Files folder image Files  /  docs  /  reports  
File Role Description
  Accessible without login HTML file deprecated.html Doc. Documentation
  Accessible without login HTML file errors.html Doc. Documentation
  Accessible without login HTML file markers.html Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageUrlExtractor (1 file)

  Files folder image Files  /  src  /  UrlExtractor  
File Role Description
  Plain text file UrlExtractor.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageUrlExtractorTest (2 files)
  Accessible without login Plain text file Bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  UrlExtractorTest  
File Role Description
  Accessible without login HTML file test_website.html Data Sample document
  Accessible without login Plain text file UrlExtractorTest.php Test Unit test script

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