Created
September 29, 2011 18:27
-
-
Save zed/1251514 to your computer and use it in GitHub Desktop.
Get all posts from del.icio.us
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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