cron a job? - how to get a stock price
looking for a way in pearl to cron and get a stock value from any source. Any ideas? Where could I get the stock value? Thanks in advance.
looking for a way in pearl to cron and get a stock value from any source. Any ideas? Where could I get the stock value? Thanks in advance.
anti posted this at 21:06 — 6th August 1999.
They have: 453 posts
Joined: Jan 1999
Hi,
adding the perl-script as a cron-job shouldn't be the problem.
Depending on what quote you need ... can you get the data from www.nasdaq.com ??
ciao
Anti
keithl posted this at 22:57 — 6th August 1999.
They have: 40 posts
Joined: Apr 1999
yes, the stock ticker is HHS. I am sorta new to perl so, be kind! Basically is this how it works...You put a statement to go to the url and put the page in a variable and then parse the info that you just need? if I am on the right track, could somebody give a little more detail about the parsing part? I know I sound over my head, but I have a programming background and I think this would be a good "real world" example of perl. I basically wanted to know if I am on the right track! thanks for your help.
keithl posted this at 17:17 — 17th August 1999.
They have: 40 posts
Joined: Apr 1999
thanks anti! I will research more about those areas and take a look at your spider script. If you find the other script, just email me! thanks...
anti posted this at 03:57 — 18th August 1999.
They have: 453 posts
Joined: Jan 1999
Hi,
try http://www.webmaster-forums.com/cgi-bin/bigtalker/discussion.cgi?forum=2&discussion=75
It's a small "spider", but if you know how to program you'll find verything you need.
The things you have to understand are http::request and regular-expressions (perldoc ?!). If you manage that your script is almost finished.
Somewhere on this site I posted another script, that loads a page, extracts a date and uploads it via ftp, but I just can't find it sorry.
ciao
Anti
anti posted this at 17:55 — 19th August 1999.
They have: 453 posts
Joined: Jan 1999
hi,
i just found the script on my site:
http://webhome.nu/webmaster/scripts/gmp.txt
it's very small and useless, but good example to start from.
ciao
Anti
keithl posted this at 17:30 — 20th August 1999.
They have: 40 posts
Joined: Apr 1999
Thanks again anti!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.