how to take current dollar rate from a webpage.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigbrother
    New Member
    • Jan 2008
    • 3

    #1

    how to take current dollar rate from a webpage.

    hello ,
    i need help in geting the current dollar rate from a web page
    to a program i'm working on in java
    can anyone help me with this???

    thanks.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by bigbrother
    hello ,
    i need help in geting the current dollar rate from a web page
    to a program i'm working on in java
    can anyone help me with this???

    thanks.
    Stay tuned my friend, just passing in hopes to make sure your post is seen:-)

    Good luck!

    Dököll

    Comment

    • chaarmann
      Recognized Expert Contributor
      • Nov 2007
      • 785

      #3
      Originally posted by bigbrother
      hello ,
      i need help in geting the current dollar rate from a web page
      to a program i'm working on in java
      can anyone help me with this???

      thanks.
      Just do what a browser is doing: read the web page as text into a String.
      But instead of displaying, search inside the string for the dollar rate and extract that substring.

      To read a webpage as String, you can use methods of class HttpURLConnecti on

      Comment

      • bigbrother
        New Member
        • Jan 2008
        • 3

        #4
        thanks ,
        I will rty and let you know
        what up...

        Comment

        • BigDaddyLH
          Recognized Expert Top Contributor
          • Dec 2007
          • 1216

          #5
          I just posted this in another thread, but it applies as well to you. To paraphrase:
          I bet, if you look around, you will find an appropriate web service. If you don't know about WS, once you do a little swotting, you'll see they're easier to interact with and more reliable that web page scraping.

          Comment

          Working...