PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
  Classes of Dawood Ikhlaq  >  Archive.org PHP API  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Archive.org PHP API
Get past versions of pages from Wayback Machine
Author: By
Last change:
Date: 5 months ago
Size: 2,451 bytes
 

Contents

Class file image Download

WMB Scrapper

=========================================

Latest Stable Version Total Downloads License

Introduction

A small Php package to fetch archive url snapshots from archive.org. using it you can fetch complete list of snapshot urls of any year or complete list of all years possible. This package can be used to do recon of any target.

Installation

Install the package through composer:

composer require dawood/wmb-scrapper

Make sure, that you include the composer autoloader somewhere in your codebase.

Examples

There are several examples provided in examples folder too.

Get first/last snapshot year of domain

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

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


Get snapshots of any year of domain

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

$url = 'https://github.com/';
$snapshotsOf2012 = WBMScrapper::getSnapShotUrlsOfYear($url, 2012);
print_r(snapshotsOf2012 );
//outputs list of urls of waybackmachin snapshots
e.g
https://web.archive.org/web/20091226225818/http://www.github.com/
    

Get snapshots of all years of domain

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

$url = 'https://github.com/';
$allSnapshots = WBMScrapper::getAllSnapShotUrls($url);
print_r($allSnapshots);

//outputs a complete list of urls of waybackmachin snapshots
e.g
https://web.archive.org/web/20091226225818/http://www.github.com/


License

The WMB Scrapper is open-sourced software licensed under the MIT license.

Contribution

Thanks to all of the contributors ,

Author

Dawood Ikhlaq and Open source community