Re: Yahoo finance quotes retrieval failing




Quoth bgoosh <9fyh-t1fo@xxxxxxxxxxxxxxx>:
I have a simple old Perl script that retrieves stock quotes, the
essence of which does:

$yahoo_string = "/d/quotes.csv\?s=$symbol_list&f=sl9d1t1&e=.csv";
# Go and get the quotes
$FH = getwww ("quote.yahoo.com", 80, $yahoo_string);

It's worked fine for years; sometime between 8/21/07 and 8/28/07
it stopped working. Now instead of a CSV list I get a Yahoo web
page response complaining about "HTTP/1.1 400 Bad Request" and
also:
<snip>

Anybody know how to fix this?

Use LWP::Simple instead.

Or, I recall reading about a package Finance:Quotes or something
like that, does that still work? If so I could probably change
my script to use that instead.

http://search.cpan.org/

Ben

.