[LUGOS] Spremljanje spreminjanja web strani
David
david.zerovnik at guest.arnes.si
Sun Oct 28 20:26:06 CET 2001
Lahko uporabis REBOL, tole je prekopirano iz njihovega prirocnika:
A handy way to verify that a Web page has changed is by using the
checksum function. If the previously calculated checksum of a Web page
differs
from its current value, then the Web page has been modified since it was
last
checked. Here is an example that uses this technique. It checks a page every
eight
hours.
forever [
page: read http://www.rebol.com
page-sum: checksum page
if any [
not exists? %page-sum
page-sum <> (load %page-sum)
][
print ["Page changed" now]
save %page-sum page-sum
send luke at rebol.com page
]
wait 8:00
]
A pozna ker kako v redu skripto ali program (textoven), ki ti pove kdaj se
je dolocena stran spremenila. Recimo mam listo strani in bi rad izvedel
enkrat na dan, kdaj se je kaksna stran spremenila.
lp, Matej Spiller
More information about the lugos-list
mailing list