Re: Javascript and WWW::Mechanize or LWP::UserAgent?

deborah sciales <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Well, I guess it depends on his set of needs, and he does have 
tokeparser and treebuilder, etc to use.

If his javascript is inside of script tags, he can use treebuilder to 
get those nodes, and then work with them. I see a host of Javascript 
modules on CPAN.

Here's why I would not try to write this in Python just yet, unless i 
had the time:

Perl -MCPAN -e shell;

cpan>  i/JavaScript/


use a module from CPAN, use a few modules from CPAN, or patch and 
improve a module!

The reason we are still using Perl for fast work, or a major reason is 
CPAN. LWP is a part of that.

I don't have time to look through the javascript modules, but something 
might be useful, and you could incorporate it into your current test 
script base without switching to a new testing enviro...?


John J Lee wrote:

>[Warren Pollans]
>  
>
>>The problem I'm running into is "trying to deal with scripts that use
>>javascript" - so far, I've had to ignore them or, at least, those
>>    
>>
>
>[deborah sciales]
>  
>
>>You might also try writing your own javascript parsing routines?
>>    
>>
>
>That's not a small amount of work you've just set Warren to do.  :-)
>
>(speaking as somebody who made a semi-serious attempt at it, in Python)
>
>
>John
>
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.