Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2009, 11:52 PM
Member
 
Join Date: Oct 2008
Posts: 4
Rep Power: 0
bobrenjc93 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 05-14-2009, 08:26 PM
hardwired's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 1,577
Rep Power: 4
hardwired is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-15-2009, 08:08 AM
Senior Member
 
Join Date: Nov 2008
Posts: 275
Rep Power: 2
neilcoffey is on a distinguished road
Default
N.B. You'll generally need to sign your applet for it to be able to access arbitrary URLs.
__________________
Neil Coffey
Javamex - Java tutorials and performance info
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +2. The time now is 07:19 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org