4 ms·
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 ~/.
by silentbicycle 16y ago
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.
- d0mine 16y agoUsing 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
- elementz3000 16y agook, 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` https://user:passwd@api.del.icio.us/v1/posts/recent` works just fine. `curl https://user:passwd@api.del.icio.us/v1/posts/all` https://user:passwd@api.del.icio.us/v1/posts/all` does not. Maybe a server-side problem?