cron a job? - how to get a stock price

They have: 40 posts

Joined: Apr 1999

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.

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

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.

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...

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 Sad sorry.

ciao
Anti

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

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.