Skip to content

Instantly share code, notes, and snippets.

@jalbertbowden
Forked from atomotic/gist:c3d9c3c6ef8210664371
Created September 25, 2015 16:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jalbertbowden/a055ff57c2e38eda8592 to your computer and use it in GitHub Desktop.
Save jalbertbowden/a055ff57c2e38eda8592 to your computer and use it in GitHub Desktop.
get the latest snapshot url archived by internetarchive waybackmachine

add to your .zshrc/.bashrc this function (jq is required)

function ia-latest() { curl -s http://archive.org/wayback/available\?url=$* | jq -r '.archived_snapshots.closest.url' }

run

$ ia-latest http://twitter.com/atomotic
http://web.archive.org/web/20131230143739/https://twitter.com/atomotic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment