I've had a Python script that makes an HTML Bookmarks file for LaunchBar.
Now that I use Alfred 2, I modified it to make XML for Alfred.
This allows me to search my bookmarks with GREP SPEED!
First, add your token (from pinboard.in/settings/password) to ~/.netrc
machine pinboard.in
password username:T0K3N11111111111
Then:
- Get pinboard-xml (I've also attached it to the gist in case I change something in my dotfiles repo)
- Put in the folder where you keep your scripts (eg.
~/bin
) chmod +x
it- Add to crontab (eg.
*/30 * * * * ~/bin/pinboard-xml
) - Make a workflow in Alfred 2 with the following Script Filter (using
/bin/bash
) to Open URL:
echo "<?xml version=\"1.0\"?>"
echo "<items>"
cat $HOME/.bookmarks.xml | grep "{query}"
echo "</items>"
Enjoy!
Updated to use urllib2 (no deps!) and API token auth instead of password auth.