Solved

want to show the share price of each company in my drupal stock market site

Posted on 2009-07-07
8
766 Views
Last Modified: 2012-06-21
i have a site in drupal which is related to stock market. i am showing the companies list on the front end. now i want to show the share price of that company on the above of each company which should get updated  every time like yahoo does.

http://www.futureofstock.com/

does yahoo provide something for this any rss ?? or can i get any script from the internet or something else that work for me.help can be taken from
www.bse.com, www.nasdaq.com.

please help me.
0
Comment
Question by:designersx
  • 4
  • 3
8 Comments
 
LVL 17

Expert Comment

by:nanharbison
ID: 24799421
I get stock prices for my own amusement using some code called Snoopy, it is very cool
http://sourceforge.net/projects/snoopy/files/

the prices get added to my database with a cron job

there are probably lots of ways to do this though.
you can see my use of this here:
http://www.nanharbison.com/screenscraper/
0
 

Author Comment

by:designersx
ID: 24800652
thanks for ur above post. ur work seems to be nice but do the prices get refreshed every time or after how much time?

is snoopy a module? could u please tell me more something i how should i proceed? i downloaded the snoopy from the link you gave me and placed it in the modules folder but from admin nothing seems to be coming in it.

how can i relate the cron job with snoopy.

If could help me, i would be very thankful to you for ur great help.

thanks.
0
 
LVL 3

Expert Comment

by:Anybody13
ID: 24806868
well, it's quite easy.

use an rss feed + the rss-module.

You can choose how often the module should refresh and output the content to a blocl

That's it!
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:designersx
ID: 24810784
that's really cool , thanks for ur advice. sir can u please tell me which rss-module i need to install. can u give me the link. how it will show the prices of each company?? please respond. i will be very thankful to you.

i don't know where nanharbison: sir has gone?
0
 
LVL 3

Expert Comment

by:Anybody13
ID: 24810934
The RSS-Module is part of drupal core!

Just activate it in your module section!
0
 

Author Comment

by:designersx
ID: 24810996
there is a module named aggregator that i have enabled it. this is for showing rss on the page.
i do not want to show the rss , my site is

futureofstock.com/ it  is related to stocks. so i was asking you about showing the current stock price of each company and get updated every second as is on finance.yahoo.com

i am attaching the snapshot , tell me where is the rss module, i can't see any rss module, yes there is a module named aggregator but i think that is for showing rss news. right?
0
 

Author Comment

by:designersx
ID: 24811003
see the snapshot.
sna2.bmp
0
 
LVL 3

Accepted Solution

by:
Anybody13 earned 250 total points
ID: 24816247
Hello,

yes it is the aggregator module!

You have to think about it again.
RSS is a really good way to handle this. If your share price provider sends the values as RSS, you can take these and display them in a Block.

You don't need to make them clickable or what ever. RSS is just the way of sharing information, like XML and so on.

Otherwise you have to write a custom module or look for XML-solutions.

Which kind/format of data do you receive?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamic Display Block not showing 4 411
Creating content driven views + menus 1 221
Warning, Page Not Found 2 92
Drupal 7 Custom Panel Layout 2 95
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question