• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read Text Web Page

 
Phil Smithie
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Wasnt sure exactly what forum to post this under, if this isnt the correct one, if a mod can move it, thanks.
I want to write an application that will read stats from a URL
(example: http://www.ontariohockeyleague.com/stats/player.php?id=2479), for the 2003-04 season.
I will do this for several players, and get the totals (for a hockey pool)
What classes in the java api should I look into. Any examples would be of great help as well.
Thanks.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's some code I use. This gets the site content into a string. You may have to parse it to find what you want.

Here's the parser I use for other projects: http://www.quiotix.com/downloads/html-parser/ There are others around fer sure.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!