in reply to is this is a Bug in Module?

This seems to be the SYNOPSIS section of XML::RSS::FOXSports, and since it looks like a runnable program I'd call it a bug if it doesn't work.

The problem could be that the objects returned from ->items are XML::RSS::Parser::Feed objects and not XML::RSS::FOXSports objects.

Replies are listed 'Best First'.
Re^2: is this is a Bug in Module?
by massa (Hermit) on Jul 15, 2008 at 11:30 UTC
    This seems to be the SYNOPSIS section...

    But there is also another SYNOPSIS for the case where you're "USING XML::RSS::Parser VERSION 4.0":

    my $fsp = XML::RSS::FOXSports->new; my $glxy_feed = $fsp->parse_mls_team('galaxy'); #-- output some values my $glxy_title = $glxy_feed->query('/channel/title'); print $glxy_title->text_content,"\n"; print $glxy_feed->item_count, "\n"; foreach my $i ( $glxy_feed->query('//item') ) { my $node = $i->query('title'); print ' ', $node->text_content, "\n"; }
    Maybe XML::RSS::Parser version is the problem??
    []s, HTH, Massa
      Hi, Thanx for the reply...

      then Can any body tell me how can i scrape FOX Sports?

      Thanx, Shekar