aspose file tools*
The moose likes Web Services and the fly likes Monitoring a website for changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Monitoring a website for changes" Watch "Monitoring a website for changes" New topic
Author

Monitoring a website for changes

Richard Alves
Greenhorn

Joined: Mar 03, 2012
Posts: 12
So I'm not sure if this goes in this thread, but its the best I could think of.

The problem I'm trying to solve is I need to write a code to monitor a webpage and when the webpage changes to either send an email and or make a notification sound, because I can't get access to the source code. This webpage is typically open on android devices so there is that to consider. I can't use an existing program mainly because I haven't found one that checks continuously or at least every thirty seconds or so. I am open to using a different programming language, but I've had more experience with java and C / C++. Any suggestions would be great!

Thanks a ton!
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

why don't you use something like http://www.changedetection.com.

Or the other way would be to crawl that web page and index, so that you can know when that page got modified.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
If the web server is generating correct Last-Modified headers, you could use a HTTP HEAD request instead of GET, thus putting less burden on the server.

See java.net.HttpURLConnection docs for setRequestMethod()

Bill

Java Resources at www.wbrogden.com
Richard Alves
Greenhorn

Joined: Mar 03, 2012
Posts: 12
harshvardhan ojha wrote:why don't you use something like http://www.changedetection.com.

Or the other way would be to crawl that web page and index, so that you can know when that page got modified.


Well unfortunately the website only updates once a day at maximum from what I can tell. I would need to know within a minute or two at max that it has changed.
Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
Could you provide an example of that website? It must be very old if it doesn't have RSS...

Many many ears ago I used an app that verified websites for changes and notified me, something like a RSS reader lol
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Monitoring a website for changes
 
Similar Threads
capture printStackTrace even though void
need to submit external form from my jsp
Commercial? Open Source? Which one is Big?
When there is change in Databse Table data JSP also needs to be refreshed
Downloading a file using URL, URLConnection classes