Hey guys I was wondering if any can help with me something. I've read an article on Mike Fast's website about how to download the pitch f/x data. What im wondering is if there's someway to get pitchers for just one team instead of every pitcher. I have the perl codes from baseball hacks and let me fetch the data and I change Line 63 from
while($html =~ m/<a href=\”(gid_\w+\/)\”/g ) {
push @games, $1;
}
to
while($html =~ m/<a href=\”(gid_\w+_nynmlb_\w+\/)\”/g ) {
push @games, $1;
}
However the problem is that still gives me pitchers from the opposing team so I was wondering if there was anything else I needed to modify to make it work so that I just get Mets Pitchers.......thanks.
while($html =~ m/<a href=\”(gid_\w+\/)\”/g ) {
push @games, $1;
}
to
while($html =~ m/<a href=\”(gid_\w+_nynmlb_\w+\/)\”/g ) {
push @games, $1;
}
However the problem is that still gives me pitchers from the opposing team so I was wondering if there was anything else I needed to modify to make it work so that I just get Mets Pitchers.......thanks.
Comment