in reply to Re: Filter Data
in thread Filter Data

ok. Heres is the site http://www.thebaseballcube.com/teams/team_32.shtml If you look on that site, it has prior years, like 2005. When you click that link it goes to another page that has a list of players. When you click on a player it has all there info. What I want perl to do is download that page for all the players for all teh years. thanks

Replies are listed 'Best First'.
Re^3: Filter Data
by erroneousBollock (Curate) on Aug 27, 2007 at 00:19 UTC
    Ok... so as your next step, show us what you have tried so far.
    (Post your code... please remember to follow the formatting guidelines.)

    -David

Re^3: Filter Data
by cobra2341 (Initiate) on Aug 27, 2007 at 00:20 UTC
    The site has alot of ad hyperlinks and I do not want those. Sorry dhoss
      use WWW::Mechanize; use strict; my $mech = WWW::Mechanize->new(); my $url = "http://www. thebaseballcube. com/teams/team_32. shtml"; $mech->get( $url ); $mech->follow_link( text_regex => 2005 );
      Ok so for $mech->follow_link( text_regex => qr/download this/i ; I could type something like 2005 and it download the 2005 page?
      ok here's what I did
      use WWW::Mechanize; use strict; my $mech = WWW::Mechanize->new(); my $url = "http://www. thebaseballcube. com/teams/team_32. shtml"; $mech->get( $url ); $mech->find_all_links();
      and got this error can't find mech. how do I download it
    A reply falls below the community's threshold of quality. You may see it by logging in.