Skip to content

Instantly share code, notes, and snippets.

@rafasashi
Forked from atomotic/Readme.md
Created June 14, 2016 23:24
Show Gist options
  • Save rafasashi/58fafd9db04977d9a8b7938a1faab1ad to your computer and use it in GitHub Desktop.
Save rafasashi/58fafd9db04977d9a8b7938a1faab1ad to your computer and use it in GitHub Desktop.
Internet Archive Save Page Now

save a page to internetarchive wayback from shell

put the function in your .zshrc or .bashrc and then

~  ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
function ia-save() { curl -s -I https://web.archive.org/save/$* | grep Content-Location | awk '{print "https://web.archive.org"$2}' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment