BuzzerBeater Forums

BBAPI Support > Doubt

Doubt

Set priority
Show messages by
From: leojf
This Post:
00
184868.1
Date: 5/13/2011 3:31:31 PM
Overall Posts Rated:
5050
Hi
I want to search players with determinate parameters. Something like an italian SG with salary more than 100k.
Can I do that?? How can i do it (please show me de order)?

Thanks

This Post:
00
184868.2 in reply to 184868.1
Date: 5/14/2011 2:11:32 AM
Overall Posts Rated:
9999
Yes you can. The simpliest way to get the players data by iterate over player ids and check the nationality and salary. I has very simple code but takes very-very long time to finish.

Faster, that get the the higher divisions' ids (I-III.) and check oonly the teams in that divisions. But there can be very good players in lower divisions.

Firts way is absolutely sure, but slow and second is faster but not too sure.

From: LA-Niko

This Post:
00
184868.3 in reply to 184868.1
Date: 5/14/2011 6:50:22 AM
Overall Posts Rated:
2121
Someone already has a tool for this ;)

(http://www.buzzerbeaterstats.com/ntscout.php)

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
This Post:
00
184868.4 in reply to 184868.3
Date: 5/14/2011 10:15:59 AM
Overall Posts Rated:
9999
But it doesn't search in the whole player database and/or some players datas are out of date as I see.

This Post:
00
184868.5 in reply to 184868.4
Date: 5/17/2011 4:31:05 AM
Overall Posts Rated:
2121
That changes constantly. If someone looks at a league it is updated along with all it's players.

My system is much faster than any scan of the BBAPI and the top level divisions all get updated regularly.

Creator of (http://www.buzzerbeaterstats.com) and (http://www.buzzerbeaternews.com/) -- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
This Post:
00
184868.6 in reply to 184868.5
Date: 5/17/2011 4:44:22 AM
Overall Posts Rated:
9999
Maybe...you think, your method is better, I think this about mine too...

From: jantzen
This Post:
00
184868.7 in reply to 184868.6
Date: 5/17/2011 8:05:13 AM
Overall Posts Rated:
5353
Hi
I don't know if playerID's is reused but my guess is there are not.

So if you want to run through all playerID's you should do that once. From there you can figure if the player is "dead" or not. Then you woukld have buildt your own playerID db.
About BB stat I think it might catch 90% off all the players which is interesting.

I have another approch which only works from season 7 ot there about.
For each season I figure manually the first ID og last ID for a countrys draft pick. From DK i have made this list
Season start stop numbers
12 14963291 14967352 4061
11 13542360 13546375 4015
Then I build the DB with active players.
This way should work for a specific country and not for bbstats.
bbstats is my guess that they want all playerinformation for all countries. But this could be fun if bbstats can allocate a years draftee class no matter which country.

Just my 10 cents :)