Skip to content

Instantly share code, notes, and snippets.

@zed
Created September 29, 2011 18:27
Show Gist options
  • Select an option

  • Save zed/1251514 to your computer and use it in GitHub Desktop.

Select an option

Save zed/1251514 to your computer and use it in GitHub Desktop.
Get all posts from del.icio.us
#!/bin/sh
#
# Get all posts from del.icio.us
# See http://www.delicious.com/help/api
#
USER=$1
OUT=posts-${USER}.xml
[ -z "$USER" ] && echo "USAGE: $0 USERNAME" && exit 2
curl --user-agent 'get-all-del.icio.us-posts/0.1.1' \
--user "$USER" \
--url https://api.del.icio.us/v1/posts/all \
--output "$OUT" \
--dump-header - \
|| echo "output written to $OUT. Curl returned $?"
sleep 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment