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 againbookshelf overview
Recent commits See more »
| Author | Revision | Comments | Message | Labels | Date |
|---|---|---|---|---|---|
|
|
71ba17b2340c |
Fix function/variable names |
|
||
|
|
74b953388d3d |
Reimport urllib after I accidentally removed it |
|
||
|
|
8c8ae691eace |
Fix function/variable names |
|
||
|
|
158a61613f94 |
Replace BeautifulSoup with lxml.html |
|
||
|
|
dbdbef8674d2 |
add README |
|
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. :)