Net::BF2S - Get Battlefield 2 Player Stats
use Net::BF2S; my $bf2 = Net::BF2S->new; my $data = $bf2->getStats(45355493,64573414,64318788,64246757,62797217,61091442,64964638,64661842,65431962,58968459);
Fetches Battlefield 2 player stats from BF2S.
You must use the PID (player ID) when requesting stats. If you try to request the player stats by player name, the module will ignore it. You can get the PID from many sources, including the BF2S.com website.
You can only make THREE requests for data in a SIX hour period. This is a restriction from the feed provider, not of the module. Try to ask for as much information as possible in one request. The module (not yet) is written in a way that will try to include a list of "candidates" (a list of PIDs that you've asked for before, but you didn't ask for this time around) that will also be requested in that same request, which is meant to update your local player stat cache when possible.
I'll provide more documentation later.
Uses data feed from Jeff Minard's BF2S MyLeaderBoard API <http://jrm.cc/extras/mlb/readme.html<gt>.
Need to finish the "candidates" list functionality.
0.01 - Sun May 21 21:52:31 2006 - Dusty Wilson New module with basic functionality.
There probably are some. Let me know what you find.
Dusty Wilson, <bf2s-module@dusty.hey.nu<gt>
Copyright (C) 2006 by Dusty Wilson <http://dusty.hey.nu/<gt>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Net::BF2S, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::BF2S
CPAN shell
perl -MCPAN -e shell install Net::BF2S
For more information on module installation, please visit the detailed CPAN module installation guide.