Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2023-12-03 (8 days ago)  | | Not enough user ratings | | Total: 425 This week: 4 | | All time: 6,340 This week: 71 |
|
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.. | |
|
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

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

About the author
- Email: joaopedrocr@gmail.com
- Blog: http://joaoperibeiro.com
- Personal Page: http://joaopcribeiro.branded.me
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.