Skip to content

Instantly share code, notes, and snippets.

@atomotic
Last active September 25, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save atomotic/c3d9c3c6ef8210664371 to your computer and use it in GitHub Desktop.
Save atomotic/c3d9c3c6ef8210664371 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