Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "Watching #{ARGV[0]}"
- changed = false
- last = false
- until changed
- page = `curl #{ARGV[0]}`
- unless last == false
- changed = page != last
- end
- last = page
- sleep 60
- end
- File.open("last.html","w+") {|f| f.write last }
- File.open("page.html","w+") {|f| f.write last }
- puts "Changed!"
- puts `diff page.html last.html`
Add Comment
Please, Sign In to add comment