Re: Piggy Bank (2.1.1) scraper issues - resolved
Steve,
Thanks for the tips! We'll fix that in the next version.
(Indeed, model.addStatement() is a Java method in Piggy Bank, called
through LiveConnect, while it is a Javascript function in Solvent. And
hence the discrepancy in the behavior.)
David
Steve Dunham wrote:
>
> I managed to figure out the issues I was having with scraper
> development, it turns they were caused by the following:
>
> * model.addStatement() called with three arguments will silently
> fail (and the coin will continue to spin)
>
> I didn't notice this in testing, and thought there was an issue with
> Literals containing internal quotes/newlines, because solvent uses a
> different model.
>
> In investigating this, I noticed that
> collector.js:PB_Collector_executeJavascriptScraper () defines a
> variable "o", you might want to rename this to _o_ or something to
> prevent clashes. (This didn't bite me, but could get somebody in the
> future.)
>
> Steve Dunham
>
Received on Tue Nov 15 2005 - 00:03:56 EST
This archive was generated by hypermail 2.3.0
: Thu Aug 09 2012 - 16:39:18 EDT