PHP Classes
elePHPant
Icontem

Archive.org PHP API: Get past versions of pages from Wayback Machine

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-12-06 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 97 All time: 9,257 This week: 284Up
Version License PHP version Categories
wbm-scrapper 1.0.0MIT/X Consortium ...5PHP 5, Web services
Description Author

This package can get past versions of pages from Wayback Machine.

It can send HTTP requests to the archive.org Web site to retrieve snapshots of past versions of a page with a given URL.

Can also retrieve the list of available snapshots of a given page of a given year, as well the list of years that a page has available snapshots.

Innovation Award
PHP Programming Innovation award nominee
December 2018
Number 2
Many sites have gone through many changes and nowadays they look different or even do not exist.

The Wayback Machine is site that keeps archives of old versions of Web site pages even after they do not exist anymore.

This package provides a means to retrieve old version of Web site pages from PHP.

Manuel Lemos
  Performance   Level  
Name: Dawood Ikhlaq <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 25
All time rank: 241395 in Italy Italy
Week rank: 43 Up3 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

 

Details

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


  Files folder image Files  
File Role Description
Files folder imageexamples (1 file)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example.php Example Example script

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:97
This week:0
All time:9,257
This week:284Up