in reply to www::mechanize check if webpage has updated

Do you mean page content or what gets displayed to the user? The reason I ask is that pages (or sections of pages, for example a news section) could be updated via AJAX, so while the JavaScript and HTML may not have changed what gets displayed to the user by dynamic methods may be different.

  • Comment on Re: www::mechanize check if webpage has updated

Replies are listed 'Best First'.
Re^2: www::mechanize check if webpage has updated
by JavaFan (Canon) on Sep 16, 2010 at 12:11 UTC
    Even without dynamic content, what's displayed to the user may change. A page may contain a picture, and the picture (but not the URL) may change (think page counters).
Re^2: www::mechanize check if webpage has updated
by Anonymous Monk on Sep 16, 2010 at 12:16 UTC
    html..more tags get added

      If you purely care about HTML tags use WWW::Mechanize's content method to get the page. Then you may want to use one of the HTML parsing modules to compare tags, or if what you're really trying to do is monitor for changes to static HTML content, sore and compare $mech->content() periodically for changes.</c>

        how do i compare?