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

If you'll browse no the events in calendar then you'll find the events details also and on clicking on the events it shows complete information. Can't we simply browse those pages by clicking on those events. Since there is no href attribute in those that's why I'm not able to browse them otherwise it would have been easier and better to fetch the information as per date wise.
  • Comment on Re^4: How to browse using WWW::Mechanize::Firefox

Replies are listed 'Best First'.
Re^5: How to browse using WWW::Mechanize::Firefox
by Corion (Patriarch) on May 29, 2012 at 09:34 UTC

    WWW::Mechanize::Firefox can "click" on any page element, even if it does not appear as "link". But you will have to figure out on what elements to click, and how to identify these.

    Again, I recommend using the RSS and/or ical interfaces instead. They are geared for consumption by machines such as smartphones.

      I don't know much about RSS and ical. I clicked on these links and they saved the events in my outlook calendar. While I was trying to save the report in some notepad or database. Do you have any idea about it. Also I clicked on 'list' tab and get the events list with dates but after that $mech->content doesn't gives it's content in the same way. It prints the same earlier content which was used to appear on browsing this page.

        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.

Re^5: How to browse using WWW::Mechanize::Firefox
by Anonymous Monk on May 29, 2012 at 09:31 UTC
    How about you do that?