Results 1 to 3 of 3
  1. #1
    bobrenjc93 is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default How to download data from a website.

    How would I write code in java to allow me to go to a certain URL and take information off of it?

    Here are my two ideas on how I could accomplish this task.
    1. Create a sort of macro that copies and pastes the information from the website into a text document.
    2. Analyze the websites HTML to find the information I want.

    Sadly, I have no idea how I will accomplish this task. It would be greatly appreciated if someone could help me.

    PS: I have both a AIM and MSN account if that would make communication easier.

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    go to a certain URL and take information off of it
    Reading Directly from a URL

    copies and pastes the information from the website into a text document
    Trail: Creating a GUI with JFC/Swing
    Using Text Components
    How to Use Text Areas
    You can use the append method to add each line you read to the textArea or use the superclass JTextComponent read method.
    How to Use Scroll Panes
    Using Top-Level Containers

    Analyze the websites HTML to find the information I want
    Strings

  3. #3
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    7

    Default

    N.B. You'll generally need to sign your applet for it to be able to access arbitrary URLs.

Similar Threads

  1. programming website?
    By ragarwal in forum Forum Lobby
    Replies: 11
    Last Post: 12-21-2009, 01:37 PM
  2. set up tomcat on website
    By hunterbdb in forum Java Servlet
    Replies: 1
    Last Post: 04-22-2009, 07:52 AM
  3. WebSite Update!
    By Xyle in forum Reviews / Advertising
    Replies: 1
    Last Post: 02-16-2009, 09:47 AM
  4. How to download website (Get all link in website)
    By finalmem in forum Advanced Java
    Replies: 0
    Last Post: 11-12-2008, 09:43 AM
  5. Getting character set from a website
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-26-2007, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •