Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For non-command-line-skittish people (on Unix), you can say something like

    wget --quiet --http-user=`head -n 1 ~/.deliciousrc` --http-passwd=`tail -n 1 ~/.deliciousrc` -O ~/docs/delicious.xml http://del.icio.us/api/posts/all
where ~/.deliciousrc is a text file with two lines:

   yourusername
   yourpassword
(or something similar with curl)

I run this out of cron nightly and back up my bookmarks in a git repo, along with my other dotfiles. I really appreciate services like delicious, but I don't trust them.

I'm going to miss delicious's data set, though. Searching a really big link collection with tags was great - I found a really good Ethiopian cookbook, some good+obscure research papers, and lots of other stuff that way.




Using curl:

  curl -n -o ~/docs/delicious.xml https://api.del.icio.us/v1/posts/all
where `-n` flag forces curl to read ~/.netrc file:

  machine api.del.icio.us login yourusername password yourpassword


ok, so did anyone manage to get either the curl or the wget method working?

`curl https://user:passwd@api.del.icio.us/v1/posts/recent` works just fine.

`curl https://user:passwd@api.del.icio.us/v1/posts/all` does not.

Maybe a server-side problem?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: