PHP Classes

File: examples/example.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   Archive.org PHP API   examples/example.php   Download  
File: examples/example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Archive.org PHP API
Get past versions of pages from Wayback Machine
Author: By
Last change:
Date: 5 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);