ReadMe
what is this?
PowerShell function to obtain Wayback Machine Availavility from Wayback Machine APIs
API details
Refer following API information.
Usage
This Cmdlet supports API for "Wayback Availability JSON API".
You can use urls
and timestamp
parameter.
Abount Cmdlet
Summary
Here's chart for easy understanding.
Cmdlet | pipeline input | mode | PreferUrlCount |
---|---|---|---|
Get-WaybackMachineAvailavility | O | Synchronous | urls < 5 |
Get-WaybackMachineAvailavilityAsync | X | Aynchronous | urls >= 10 |
Get-WaybackMachineAvailavilityPrallel | X | Parallel | urls < 10 |
Synchronous Cmdlet
You can use Get-WaybackMachineAvailavility
.
- Supports pipeline input.
- Synchronous cmdlet may prefer for only small number of urls.
- target will be single or less then 5
Asynchronous Cmdlet
You can use Get-WaybackMachineAvailavilityAsync
.
- Doesn't supports pipeline input.
- Asynchronous execute for each url. Prefer for large number of urls.
- target will be more than 10
Parallel Cmdlet
You can use Get-WaybackMachineAvailavilityParallel
.
- Doesn't supports pipeline input
- Parallel execute for each url. Prefer for medium number of urls.
- target will be less than 10
About Parameters
All cmdlet supports same parameters.
urls
parameter
Input available urls to check whether "Wayback Machine" is availeble. multiple urls will be operate for each url inside cmdlet.
# Synchronous invokation
Get-WaybackMachineAvailavility -urls "http://tech.guitarrapc.com","http://neue.cc"
# Asynchronous invokation
Get-WaybackMachineAvailavilityAsync -urls "http://tech.guitarrapc.com","http://neue.cc"
# Parallel invokation
Get-WaybackMachineAvailavilityParallel -urls "http://tech.guitarrapc.com","http://neue.cc"
You can use pipeline to pass multiple url at once for Get-WaybackMachineAvailavility
.
However Get-WaybackMachineAvailavilityAsync
and Get-WaybackMachineAvailavilityParallel
not supporting pipeling input.
# Synchronous pipeline invokation
"http://tech.guitarrapc.com","http://neue.cc" | Get-WaybackMachineAvailavility
If invalid url was passed, then API returns null.
timestamp
parameter
Additional options which may be specified are timestamp
Timestamp is the timestamp to look up in Wayback. If not specified, the most recenty available capture in Wayback is returned.
Make sure timestamp
format as 1-14 digits of 'yyyyMMddHHmmss' or 'yyyy' or 'yyyyMM' or 'yyyyMMdd' or else.('2006' will tring to obtain closed to 2006)
# Synchronous invokation with 20060101
Get-WaybackMachineAvailavility -url http://neue.cc -timestamp 20060101
# Asynchronous invokation
Get-WaybackMachineAvailavilityAsync -urls "http://tech.guitarrapc.com","http://neue.cc" -timestamp 20060101
# Parallel invokation
Get-WaybackMachineAvailavilityParallel -urls "http://tech.guitarrapc.com","http://neue.cc" -timestamp 20060101
this may result closed to timestamp
date "20060101".
common parameter
You can use Common parameters defined by [CmdletBinding()]
, like Verbose
switch.