Skip to content

Instantly share code, notes, and snippets.

@JasonMorgan
Created December 14, 2017 18:34
Show Gist options
  • Save JasonMorgan/ac5901af81fdf8a4b3584730b00a3118 to your computer and use it in GitHub Desktop.
Save JasonMorgan/ac5901af81fdf8a4b3584730b00a3118 to your computer and use it in GitHub Desktop.
#requires curl
function grab-stories {
param ($username)
(curl -sL http://api.storify.com/v1/stories/$username |
ConvertFrom-Json).content.stories.foreach{curl -s -o "$($_.slug).html" "$($_.permalink)"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment