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

You will have to do some programming then. You will need to correlate the positions of the events with the date information. Personally, I would do that by using the page co-ordinates, but likely you can also get by by determining the column in which an element is positioned.

I won't write a program for you because that requires deeper analysis and investment of more time than I'm willing to spend on what is mostly trial and error.

Update: Consider switching the view to "List" view, then you should be able to easily extract the date and the description from the same HTML element. Also, that page exports RSS and ICal views as well - instead of scraping, I recommend you use the data in these formats.

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

Replies are listed 'Best First'.
Re^4: How to browse using WWW::Mechanize::Firefox
by ckj (Chaplain) on May 29, 2012 at 09:26 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.
      How about you do that?