views:

48

answers:

3

I have a professor who randomly updates his website with homework due tomorrow and seems to expect us to check it every hour.

This sounds like a job for a program.

His website is simple and entirely html, not even any javascript. How could I programatically detect any changes/updates to his website?

+1  A: 

Fetch and md5 the content of each page. Then store and compare with previous values. Note that this is sensitive down to the character level.

Alternativelly, setup a Google Alert for site:your-professors-website.com and have the updates delivered to your email or via rss.

cherouvim
+1  A: 

setup a cron job to periodically wget or curl the URL, then grep for relevant text, then send yourself an email if interesting results are found...

hvgotcodes
+4  A: 

Check the Last-Modified Response header.

RedFilter
This is definitely the easiest way to do this...extra credit would then be to run it through a diff engine and email yourself the results. That would even prevent you from having to figure out what changed...
Chris Thompson
He always just adds to the end, so figuring out changes isn't tough.
CodeFusionMobile