From: David Huynh <dfhuynh_at_csail.mit.edu>
Date: 2005年8月04日 09:11:37 -0400
Alf Eaton wrote:
> On 04 Aug 2005, at 02:56, David Huynh wrote:
>
>> XSLT-based scrapers cannot get the resulting HTML code as we can't
>> run the Javascript code ourselves. For this reason, I'd recommend
>> using Javascript-based scrapers instead. They get the final DOMs
>> that the browser has after all Javascript code has been run.
>
>
> If the Javascript-based scrapers can get the final DOM, then why
> can't Piggy Bank give the XSLT-based scrapers access to the same
> final DOM?
Yes, it's technically possible, but we'I think ll have to serialize the
DOM and then pass the resulting string to the Java-based XSLT processor.
Maybe there's a better way using Firefox's own XSLT processor...
David
Received on Thu Aug 04 2005 - 13:06:07 EDT