Script for stock quotes and tickers
I'm looking for a script that pulls in updated contents about stock quotes(like any financial portal site). Do you know how it works?
Thanks
I'm looking for a script that pulls in updated contents about stock quotes(like any financial portal site). Do you know how it works?
Thanks
JP Stones posted this at 15:16 — 11th January 2000.
They have: 2,390 posts
Joined: Nov 1998
Have you already tried looking at the major cgi resource sites for this script?
JP
Mark444 posted this at 15:47 — 11th January 2000.
They have: 26 posts
Joined: May 1999
Yes, I did.
The only similar thing was a script about weather @ cgi-resources.com
I'll keep on searching...
Thanks
Rob Pengelly posted this at 19:09 — 11th January 2000.
They have: 850 posts
Joined: Jul 1999
If you give me a URL to a site that has updated stock quotes, it should be too hard to figure out a script to get those quotes.
------------------
1 in 5,000 north atlantic lobsters are born bright blue.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Rob Pengelly posted this at 05:59 — 14th January 2000.
They have: 850 posts
Joined: Jul 1999
Are you looking specifically Technology stocks?
If you look at http://investor.cnet.com/
Scroll down a little and you will see " Top Tech"
Is that what you are looking for (but you need it on your own site)?
------------------
1 in 5,000 north atlantic lobsters are born bright blue.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Brooke posted this at 19:50 — 14th January 2000.
She has: 681 posts
Joined: Feb 1999
Here is a site I helped work on a long time ago - but they have the kind of stock ticker I think you are looking for. We got it free from another site. Just copy the script and you can change the look of the table it's in.
http://www.4amegastockpick.com/invest.htm
Brooke
------------------
Providing quality websites for businesses and individuals!
www.cataluna.com
Mark444 posted this at 22:24 — 14th January 2000.
They have: 26 posts
Joined: May 1999
Thank you Robp and Brooke!
ROBp:
Yes, that's the kind of stuff I'm looking for...NASDAQ, NYSE, and stock quotes search..something like the 1st table in http://finance.yahoo.com/ and - if possible -the following search form. I noticed many sites get those quotes from Yahoo. Thank you again for your interest and your help
Brooke: Thanks, a ticker script like the one in http://www.4amegastockpick.com/invest.htm
would be great..but...how can copy it from that site? And..should I ask a permission for its use?
Thx
Rob Pengelly posted this at 22:09 — 16th January 2000.
They have: 850 posts
Joined: Jul 1999
OK, I was bored so I messed around with a scirpt that gets the latest stock quotes from
cnetinvestor.com
You will need
LWP::Simple;
module installed for this to work.
When the script is executed, it writes the quotes to a text file. You can than use SSI to call up the text file.
Here is an example page http://dlo.net/~rob/cgi-bin/quotestest.shtml
Here is the Source http://dlo.net/~rob/cgi-bin/quotessource.txt
Hope that helps.
------------------
1 in 5,000 north atlantic lobsters are born bright blue.
[This message has been edited by robp (edited 16 January 2000).]
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Mark444 posted this at 23:05 — 16th January 2000.
They have: 26 posts
Joined: May 1999
Wow THANKS Rob, that's GREAT
I'm going to test it right now...
Rob Pengelly posted this at 16:38 — 17th January 2000.
They have: 850 posts
Joined: Jul 1999
Just curious if you got it to work fine?
------------------
A cow produces about 65 pounds of crap a day.
RobertW posted this at 23:53 — 19th January 2000.
They have: 89 posts
Joined: Dec 1999
this seems like a great script, however I have no luck maiking it work... is there a way to check if there is LWP::Simple;
module installed on my server?
it gave me a couple of 500 server errors... and I have no clue whta am i doing wrong, well my site is hosted with jumpline.com and i am not sure if they have this module installed...
Virtual Crawl your search is over!
Market Place U.S. best classifieds online
Orpheus posted this at 03:29 — 20th January 2000.
They have: 568 posts
Joined: Nov 1999
LWP comes with Perl 5 but they may have it disabled for "security" reasons. If they do then you may try using sockets to retrieve the file to be parsed by the script.
kumanan posted this at 15:29 — 9th February 2000.
They have: 23 posts
Joined: Jun 1999
hi,
im trying your script, but i get allways error message...
when i start the quotes.cgi ...
it comes with this error
500 internel Server error
by calling quotes.txt from q.shtml
it comes with this error
[an error occurred while processing this directive]
but in the cgi-bin directory it has created the quotes.txt with the quotes...
------------------
Rob Pengelly posted this at 20:08 — 9th February 2000.
They have: 850 posts
Joined: Jul 1999
Does your host allow SSI?
<!--#include file="/cgi-bin/quotes.txt"-->
that seems to work fine.
------------------
Due to precipitation, for a few weeks K2 is bigger than Mount Everest.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
RobertW posted this at 21:37 — 26th April 2000.
They have: 89 posts
Joined: Dec 1999
I know I am bringing this topic from death, but I really like this script but have no luck in instaling it,
here is whta i have done,
named it quotes.cgi and placed it in cgi directiory
chmod 755
then created quotes.txt in cgi directory and chmoded it 777
when I call the script on my page http://hostciti.com/quotes.shtml
nothing happens
when I call the script directly it gives me a server error,
any ideas?
Virtual Crawl your search is over!
Market Place U.S. best classifieds online
RobertW posted this at 21:51 — 26th April 2000.
They have: 89 posts
Joined: Dec 1999
well, the script works fine, when I checked the quotes.txt it has all the info required, the problem is with bringing that info to my page, can anyone help?
my webhost supports ssi
Virtual Crawl your search is over!
Market Place U.S. best classifieds online
Mark444 posted this at 22:09 — 26th April 2000.
They have: 26 posts
Joined: May 1999
I still have the same problem so I was about to giving it up.. i'll try again and let you know, Ok?!
PS: Do you have a working copy of news grabber? Can you tell me more about it? THANKS
Rob Pengelly posted this at 22:27 — 26th April 2000.
They have: 850 posts
Joined: Jul 1999
To include the quotex.txt with SSI you can just use
<!--#include file="/cgi-bin/quotes.txt-->
You will probably have to rename your .html to .shtml to allow SSI.
But to have the quotes.cgi updates, you can either just visit it every so often to execute it, or make a cron job to execute the file.
To do that, you will need to create a file named
"cront" in /home/you
inside it put something like
10 * * * * /home/yourname/public_html/cgi-bin/quotes.cgi
than login through telnet and type
crontab cront. Now your script should execute every 10 minutes.
Hope that helps a little. (Please correct me anyone if I am wrong on setting up the cron job)
------------------
awsoem Tehcnical Lunix Smart Inc:teh best webhost!!
Personal Site
http://www.wiredstart.com : The Technology Start Page
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Mark444 posted this at 12:19 — 5th May 2000.
They have: 26 posts
Joined: May 1999
Thanks RobP, now it works.
I just had to add a script to call the txt file. The shtml page calls the script and display the results. Hope this can help RobertW
#!/usr/bin/perl
$menu_file = "/usr21/home/fin/public_html/cgi-bin/quotes.txt";
print "Content-type: text/html\n\n";
open(FILE,"$menu_file");
while(<FILE> ) {
print $_;
}
exit;
One more thing: is it possible to avoid the links to cnet detailed pages or modify the same script to pick up data from yahoo sweden or spain?
Thanks
RobertW posted this at 20:33 — 5th May 2000.
They have: 89 posts
Joined: Dec 1999
thanks, it works now
by the way I found the newspro at cgi-resources.com
if will have problems finding it let me know I will send you a copy
RobertW posted this at 20:35 — 5th May 2000.
They have: 89 posts
Joined: Dec 1999
I meant the news grabber...
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.