in reply to Wanted: LWP with javascript
Anyway, I grabbed one of the pages (companies with the letter 'B'), stored it in a file and used the following to create a Perl data structure:
perl -e "use Data::Dumper; open(H,qq|stocksymbols.txt|) or die $!; loc +al $/; my $allfile .= <H>; close(H); if($allfile=~m/(\[\[.*\]\])/s){@ +stuff = eval($1) }; print Dumper \$stuff[0]->[1]->[0];" $VAR1 = \'BACPRV';
With your newfound data structure you can easily use LWP::Simple and Yahoo stocks or some other source to get the data you want (although I am willing to bet their service agreement says you should not do it there either).
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wanted: LWP with javascript
by stony (Initiate) on Jan 19, 2006 at 23:12 UTC | |
by dorward (Curate) on Jan 20, 2006 at 00:12 UTC | |
by stony (Initiate) on Jan 20, 2006 at 01:00 UTC | |
by Errto (Vicar) on Jan 20, 2006 at 04:20 UTC |