in reply to Re^6: How to browse using WWW::Mechanize::Firefox
in thread How to browse using WWW::Mechanize::Firefox

Please learn about RSS and iCal by reading internet documentation for it. For example RSS and iCal.

Please note that the "list view" displays differently from the "month" view. This may or may not correspond to giving the elements different class attributes. I recommend analyzing the generated HTML and debugging the Perl code.

I won't help you with the concrete HTML scraping because the RSS and/or iCal will provide a far better solution. Please do invest the effort to learn about these formats. Likely, it will help you to learn how to speak HTTP without a browser, for example using LWP::Simple or WWW::Mechanize. Many of the RSS modules also can consume a link directly, and likely also the iCal family of modules can consume calendar information served over HTTP.

  • Comment on Re^7: How to browse using WWW::Mechanize::Firefox

Replies are listed 'Best First'.
Re^8: How to browse using WWW::Mechanize::Firefox
by ckj (Chaplain) on May 30, 2012 at 07:07 UTC
    Thanks corion, RSS was a helpful for this application and I can directly put the calendar content into my outlook calendar. But only thing I couldn't make is that after clicking Link tab the HTML contents scrapped are not the updated one, I always get the previous content. Any suggestions?
    $mech->click({ selector => '#ui-btn-calendarlist-list', synchronize => + 0 }); print $mech->content;#should fetch updated contents
    Update: On using Click function, the contents get changed on web page as according but on fetching that page using $mech->content gives previous contents.
      What did click return? Maybe you want to use the synchronize option to click?
        On printing click command,I get HTTP::Response=HASH(0x1448b64)