• Post Reply Bookmark Topic Watch Topic
  • New Topic

Whats the best way to retrieve data from a webpage?  RSS feed

 
Ray mann
Ranch Hand
Posts: 48
Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I would like some advice as to the best way to retrieve data from a web page? I intend to use the data for personal reports on dive conditions in my area.
All help and advice is always appreciated.
Thanks in advance!
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideally, the site that serves that web page also provides a machine-friendly way to view the data. That would usually be in the form of a web service. That's probably the easiest way. Without that, you'd have to scrape the data from the web page. See screen scraping and web scraping.
 
Tim Moores
Saloon Keeper
Posts: 4034
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HtmlUnit library is IMO the best way to access web sites programmatically.
 
Ray mann
Ranch Hand
Posts: 48
Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help guys I found a weather API that provides XML response.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!