PHP Classes

File: vendor/dawood/wmb-scrapper/examples/example.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   ReconCat   vendor/dawood/wmb-scrapper/examples/example.php   Download  
File: vendor/dawood/wmb-scrapper/examples/example.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: ReconCat
Retrieve past versions pages from Web Archive
Author: By
Last change:
Date: 2 years ago
Size: 587 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: daudm
 * Date: 2/25/2018
 * Time: 8:27 PM
 */

use dawood\WBMScrapper\WBMScrapper;
include
"../vendor/autoload.php";

$url = 'https://github.com/';
$aliExpressFirstSnapShotYear = WBMScrapper::firstSnapshotYear($url);
$aliExpressLastSnapShotYear = WBMScrapper::lastSnapshotYear($url);
echo
$aliExpressFirstSnapShotYear.PHP_EOL;
echo
$aliExpressLastSnapShotYear.PHP_EOL;

$snapshotsOf2012 = WBMScrapper::getSnapShotUrlsOfYear($url, 2012);
print_r($snapshotsOf2012 );

$allSnapshots = WBMScrapper::getAllSnapShotUrls($url);
print_r($allSnapshots);