Results 1 to 11 of 11

Thread: automatic updating --- getting info from websites

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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?

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    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.

  3. #3

  4. #4
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    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?!

  5. #5
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    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

  6. #6

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  8. #8

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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?

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  10. #10

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: automatic updating --- getting info from websites

    I just saw what you meant, it doesn't look like the easiest thing!

  11. #11

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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
  •  



Click Here to Expand Forum to Full Width