|
-
Jan 20th, 2005, 09:08 PM
#1
Thread Starter
Frenzied Member
automatic updating --- getting info from websites
I'm working on this currency converter right now. The exchange rate for currency changes everyday, and I thought it would be a cool addition to have it update automatically to whatever a website said the exchange rate was...Is this possible to get a connection to a website and recieve updates like that?
-
Jan 20th, 2005, 10:00 PM
#2
Dazed Member
Re: automatic updating --- getting info from websites
I asked the same on this site a long time ago and never got an answer. What i wanted to do was get information in real time like a stocks price as it fluctuates throughout the day.
-
Jan 20th, 2005, 10:03 PM
#3
Dazed Member
Re: automatic updating --- getting info from websites
-
Jan 21st, 2005, 04:33 AM
#4
Addicted Member
Re: automatic updating --- getting info from websites
Are there no RSS feeds that you could link to to get up to date exchange rate information? linking to one of these would be straight forward enough, then you just have to deal with an XML document?!
-
Jan 21st, 2005, 04:46 AM
#5
Addicted Member
Re: automatic updating --- getting info from websites
I only did a quick scan on teh web, but XE.com have such a service:
http://www.xe.com/dfs/sample-gbp.xml that is a link to there GBP exchange rate, it would be pretty easy to parse, unfortunately you have to pay for the real feed, but it is possible...
Hope that helps
Andy
-
Jan 21st, 2005, 04:30 PM
#6
Thread Starter
Frenzied Member
Re: automatic updating --- getting info from websites
I check it out. It looks like you need a HttpURLConnection object. But, as andy hollywood metioned, you have to pay for the initial feeds.
-
Jan 21st, 2005, 05:08 PM
#7
Re: automatic updating --- getting info from websites
You could, of course, attempt to parse some other site for the information, but it's hard to find what you want.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 21st, 2005, 06:17 PM
#8
Thread Starter
Frenzied Member
Re: automatic updating --- getting info from websites
are you saying that I can just use a url connection and read the source code? If so, I might try that. Will the updates be in the source code?
-
Jan 21st, 2005, 06:38 PM
#9
Re: automatic updating --- getting info from websites
Yes, they will, but getting them will be the problem.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 21st, 2005, 08:20 PM
#10
Thread Starter
Frenzied Member
Re: automatic updating --- getting info from websites
I just saw what you meant, it doesn't look like the easiest thing!
-
Jan 22nd, 2005, 07:39 AM
#11
Thread Starter
Frenzied Member
Re: automatic updating --- getting info from websites
Since they make people pay for this, I'm guessing they change their html code every day to keep people like me from using it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|