[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OK, stock quotes are doable ... but I may need help with REGEX
lynx -dump http://quote.yahoo.com/q?s=COSFF,NSCP
We get the quotes in text format here, but in the middle of a bunch of
garbage. I don't know much about regular expressions, but I assume that
would be the easiest way to extract these things. Here's the output.
Someone wanna give it a go??? I think I'll write this program in Perl
(I already started with some structure/declaractions).
Here's the top part of what I get:
-------------------------------
[1]Yahoo! Finance [2]Home - [3]Yahoo! - [4]Help - [5]Sign In
_________________________________________________________________
_________________________ __________[Basic.......] [6]symbol lookup
_Portfolios(Track your favorite stocks here) : _[[7]Register/Sign
In]
_Quotes_ [8][Ameritrade] [9]DLJ Direct [10]Quick & Reilly
Need a mortgage? Visit the [11]Loan Center for quotes, rates,
recommendations and more. [12]Web Street [13][Datek Securities]
[14][E*Trade]
Click to trade or open an account. - [15]Important Disclaimer_Views:
_[16]Basic [17][edit] - [18]DayWatch - [19]Performance -
[20]Fundamentals - [21]Detailed - [[22]Create New View]
Sun Jul 19 5:19pm ET - U.S. Markets Closed.
Symbol Last Trade Change Volume More
Info
[23]COSFF Jul 17 _1 25/32_ +1/32 +1.79% 135,000
[24]Chart,
[25]News, [26]SEC, [27]Msgs, [28]Profile, [29]Research, [30]Insider
[31]NSCP Jul 17 _32 1/8_ -1 1/8 -3.38% 4,075,200
[32]Chart,
[33]News, [34]SEC, [35]Msgs, [36]Profile, [37]Research, [38]Insider
Select a Symbol for a detailed quote. Quotes delayed 15 minutes for
Nasdaq, 20 minutes otherwise.
[new] [39]Customize Finance (Yahoo! ID required) [new]
[40]COOL JOBS @ YAHOO - [41]Yahoo! Finance Home
_[42]Tables Version - [43]Download Spreadsheet Format _
_Recent News_
--------------------------------
Wondering if this is a good time to buy Corel,
Micah
--
Linux: Everything else is just a toy!
http://www.geocities.com/TheTropics/Shores/2359