Index of /python/restobook
Name Last modified Size Description
Parent Directory -
Changes 2008-11-22 09:33 6.9K
s60-restobook-0.1.ta..> 2008-11-22 09:33 4.9K GZIP compressed docume>
s60-restobook-0.2.ta..> 2008-11-22 09:33 6.1K GZIP compressed docume>
s60-restobook-0.3.ta..> 2008-11-22 09:33 6.9K GZIP compressed docume>
s60-restobook-0.31.t..> 2008-11-22 09:33 7.0K GZIP compressed docume>
s60-restobook-0.4.ta..> 2008-11-22 09:33 8.1K GZIP compressed docume>
s60-restobook-0.41.t..> 2008-11-22 09:33 8.3K GZIP compressed docume>
s60-restobook-0.42.t..> 2008-11-22 09:33 8.3K GZIP compressed docume>
s60-restobook-0.5.ta..> 2008-11-22 09:33 10K GZIP compressed docume>
s60-restobook-0.55.t..> 2008-11-22 09:33 11K GZIP compressed docume>
NAME
s60-restobook.py
SYNOPSIS
Phone > My own > Python > Options > Run script > s60-restobook.py
DESCRIPTION
A Series 60 Python application for merging del.icio.us links tagged with
'restobook' with your address book. The merge is unidirectional from
del.icio.us.
OPTIONS
Merge your restobook
Connect to del.icio.us and retrieve posts tagged 'restobook' merging
them with your address book.
Define a tag filter
Define one or more tags, in addition to 'restobook', to filter the list
of posts to merge.
Add to your restobook
Post a restaurant to del.icio.us. "Post" meaning entering a name that
will be used to construct a temporary URL to store. For example, if you
entered "Bob's Diner" the application will store the following :
url : http://del.icio.us/search?all=Bob's Diner
description : restobook
tags : restobook:unfiled
shared : no
This is just a simple "note-taking" feature, with the idea that you will
fill in the details at some later date. You may also define additional
tags for the post.
Search your restobook
Search your address book for contacts marked 'restobook'. You may define
searches using one or more of the aggreagated tags for all the contacts
marked 'restobook'.
Set Y! Local location
If defined restobook will try to search Y! Local for entries matching
the term you've defined when you posting a resturant. If the query is
successful, you will be prompted to choose one of them and it will be
used to pre-populate as much data as possible; street_address,
phone_number, etc.
Your default location is a plain-text string, something like : *San
Francisco, Ca*
Enable Y! Local search
When adding a restaurant, ask Y! Local for entries macthing the name of
the restaurant you are posting to del.icio.us.
Disable Y! Local search
When adding a restaurant, do not ask Y! Local for entries macthing the
name of the restaurant you are posting to del.icio.us. Just post and get
on with it.
EXAMPLE
restobook says hello!
---------------------
Reading configs
Testing your network connection
Testing your del. login
Fetching dates tagged with restobook
Fetching posts tagged with restobook on 2006-07-21
Fetching posts tagged with restobook on 2006-07-20
Fetching posts tagged with restobook on 2006-07-18
Fetching posts tagged with restobook on 2006-07-17
Parsing 6 results
Parsing data for Quince
Trying to geocode 1701 Octavia @ Bush San Francisco CA 94109
Parsing data for Bar Tartine
Trying to geocode 561 Valencia San Francisco CA 94110
Parsing data for Bacco
Trying to geocode 737 Diamond @ 24th San Francisco CA 94114
Parsing data for The Blue Plate Restaurant
Trying to geocode 3218 Mission St. @ Valencia San Francisco, Ca. 94110
Parsing data for La Ciccia
Trying to geocode 291 30th @ Church San Francisco CA 94131
Parsing data for Schroeder's German Restaurant
Trying to geocode 240 Front St San Francisco, CA 94111
# At this point, the application actually starts to store
# the restaurants in your address book. When run in debug
# (emulation) mode on the desktop it dumps restaurant data
# to the screen...
Quince (dump) :
--------------------------------
phone_number : 415 775 8500
city : San Francisco
geopostion : 37.788026, -122.427107
tags : french italian resto restobook sf tryme
country : Us
http://maps.yahoo.com/py/maps.py?addr=240+Front+St+San+Francisco%2C+CA+94111 (map)
http://del.icio.us/url/cefa3614ae92b56ad332d525da9cc4e0 (del.icio.us)
http://www.quincerestaurant.com/pages/home_main.html (homepage)
http://www.yelp.com/biz/zFxD8QinHt69Bs7M2mgB-Q (yelp)
hours : M-H 17H30-22H00 / F-Su 17H00-22H00
state : Ca
postal_code : 94109-4326
company_name : Quince
street_address : 1701 Octavia St
# And so on
--------------------------------
All done! Mange! Mange!!
DEPENDENCIES
You will need to install the PDIS XPath and ElementTree libraries.
This script will not yet work with Series 60 Python 3rd Edition because
of Nokia's insane decision to burden individual scripts with the same
security model as the interpreter itself.
SEE ALSO
<http://www.forum.nokia.com/python>
<http://pdis.hiit.fi/pdis/>
<http://www.aaronland.info/weblog/2006/07/03/smoking/#restobook>
<http://www.aaronland.info/weblog/2006/07/31/baconmelon/#unfiled>
<http://www.aaronland.info/weblog/2006/08/19/protective/#dwim>
VERSION
0.55
DATE
$Date: 2006/09/13 03:05:01 $
AUTHOR
Aaron Straup Cope
LICENSE
Copyright (c) 2006 Aaron Straup Cope. Perl Artistic License.