Re: import from Google Maps?

From: Alf Eaton <lists_at_hubmed.org>
Date: Sun, 2 Oct 2005 12:02:19 -0400

On 02 Oct 2005, at 08:51, David Huynh wrote:

> Alf,
>
> So in Solvent, switch to the Code tab, click on Insert Template and
> choose One page. Then where in the code it says "Put your code
> here", paste this code:

[snip]

Perfect, thanks David. I've put the file online here: <http://
alf.hubmed.org/scrapers/alf-scrapers.n3>

I'm not sure how it'll respond to maps showing multiple items and
other types of searches yet, but it does the job for now. Looking for
a way to get some text into the place marker at the moment (maybe a
dialog for user input would work).

I found that Piggy Bank's caching of retrieved data made debugging
these scripts quite tricky (quitting Firefox then reloading again
after changing something, for example). It was apparently fixed here
<http://simile.mit.edu/issues/browse/PIGGYBANK-25> but now that the
data file is automatically imported there's no data coin to click to
force reloading the data.

Also, the URL matching pattern can only be changed in the n3
description file, not in the js scraper file itself, but when you
change this and reload it Piggy Bank seems to add the new URL pattern
to the old one - not sure how to delete the old pattern yet.

alf.
Received on Sun Oct 02 2005 - 15:57:31 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT