in reply to How to browse using WWW::Mechanize::Firefox
I recommend using a tool such as Firebug, which allows you to select the elements of interest by mouse and shows you an Xpath expression for the element(s). Firebug also allows you to inspect the classes of the elements.
inspecting one element, I see class="fc-event-title" - that might already be enough to find the elements that contain the event description:
X:\repos\WWW-Mechanize-Firefox>perl -Ilib -w examples\scrape-ff.pl htt +p://www.lcps.org/Page/2309 .fc-event-title Spanish I A Days Mi Familia- Oral presentation TODAY!!! Spanish I B days Mi Familia Oral Presentation TODAY!!! Spanish I A days Spanish II Spanish II Chapter 3A Quiz HOLIDAY (Memorial Day)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to browse using WWW::Mechanize::Firefox
by ckj (Chaplain) on May 29, 2012 at 08:13 UTC | |
by Corion (Patriarch) on May 29, 2012 at 08:24 UTC | |
by ckj (Chaplain) on May 29, 2012 at 09:26 UTC | |
by Corion (Patriarch) on May 29, 2012 at 09:34 UTC | |
by ckj (Chaplain) on May 29, 2012 at 11:54 UTC | |
| |
by Anonymous Monk on May 29, 2012 at 09:31 UTC |
In Section
Seekers of Perl Wisdom