Reputation: 1613
I am trying to write a Google chrome extension which can check for the any new article (content update) of a web site. As this have to be done using javascript code so how can i monitor any given web site whose web url is known using javascript code.
Any tutorial or article related to this will be very helpful.
Upvotes: 0
Views: 1147
Reputation: 63424
You don't say what you need to do with said information, but a very simple method would be to crawl the website and create a md5 hash (or any hash really) of each page, and compare that to a stored hash value. If it's not the same value, then some change has occurred (perhaps a very minor change, but you don't specify how large of a change is needed).
Example JavaScript hash code can be found on http://pajhome.org.uk/crypt/md5/ .
Upvotes: 3