bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / bookshelf

Simple (for now, at least) way for me to store URLs on my webspace with a script that grabs the <title> for a URL and then submits to a remote URL. The wsgi scripts for the server to add/display links are included.

Clone this repository (size: 30.3 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/bookshelf
hg clone ssh://hg@bitbucket.org/bobf/bookshelf

bookshelf overview

Recent commits See more »

Usage
=====

To use the local bookshelf script, you'll want to configure it to submit to the
provided wsgi scripts running on your own webserver - do this by editing the
"bookshelf" file and changing the "submitTo" variable.

Then just run: "bookshelf http://www.google.com/"

If you're not using the provided wsgi scripts you might also want to change the
"url" and "title" values in the "argNames" dict to match the query string your
remote scripts expect.

WSGI Setup
==========

If you want to use the provided wsgi scripts (in bookstore/) then you'll need
to install mod_wsgi and put the following into your <VirtualHost> section of
your config file:

    WSGIScriptAlias /bookstore/add /opt/bookstore/add.wsgi
    WSGIScriptAlias /bookstore/display /opt/bookstore/display.wsgi

    <Directory "/opt/bookstore">
            Order allow,deny
            Allow from all
    </Directory>

Obviously you will need to translate this to whatever webserver you run if you
don't run Apache.

You will also want to edit both the wsgi scripts to set the path for the
"bookstore.store" file so it stores your URLs somewhere that mod_wsgi can write
to.

Future Development
==================

If I get around to it I might turn this into a webservice for anyone to sign up
to and use, but I guess people prefer things like Read It Later:
    http://readitlaterlist.com/

We'll see how it goes. :)