BuzzerBeater Forums

BB Global (English) > BB Insider - tool for helping with game analysis

BB Insider - tool for helping with game analysis

Set priority
Show messages by
From: radszy
This Post:
1515
318389.1
Date: 3/11/2023 7:22:21 PM
Pony Slaystation
III.12
Overall Posts Rated:
5858
BB Insider - https://github.com/radszy/bbinsider/

The purpose of this tool is to help with game analysis by providing data about match that is not available through website, nor BBApi. It is not designed for end users, but rather programmers that can use it for building tools on top of it. Think of it as a BBApi extension. The output file can be consumed by any programming language.

Just an example of what information this tool can provide:
* Full match statistics (for team and each player)
* Per quarter statistics (for team and each player)
* Shot chart image
* List of all game events

Each event includes:
* event type
* attacking and defending team
* attacking, defending, assisting player
* gameclock
* shotclock
* commentary
* and extra event specific details

Some things are not implemented yet, but can be easily done:
* number of possessions
* biggest lead
* second chance points
* bench points
* fastbreak points
* and many more!

You can see a sample output from my last game (123786926): https://github.com/radszy/bbinsider/blob/main/123786926.js...

To reproduce this file, run the script with "python3 ./main.py --matchid 123786926 --print-events --print-stats".
Obviously, you need things like python with some libraries installed, but I'm assuming the any capable programmer can figure that out.

A bigger example of what data you can pull out using this tool: https://github.com/radszy/bbinsider/wiki/Shot-Types-(World...

And another example using this tool - find bugs in BB! https://www.buzzerbeater.com/community/forum/read.aspx?thr...

Last edited by radszy at 3/11/2023 7:23:03 PM

From: Djstra

This Post:
11
318389.2 in reply to 318389.1
Date: 3/11/2023 7:56:42 PM
Djstra
II.2
Overall Posts Rated:
3737
Great job to provide insights into GE. Thanks for sharing!

This Post:
00
318389.3 in reply to 318389.2
Date: 3/12/2023 6:41:12 AM
Piranhas Gdansk
IV.24
Overall Posts Rated:
1010
Second Team:
Marlins Gdańsk
Hey how install this? ;)

This Post:
00
318389.4 in reply to 318389.3
Date: 3/12/2023 12:28:06 PM
Pony Slaystation
III.12
Overall Posts Rated:
5858
I've added some instructions on Github on how to run it - the instructions were tested only on Windows, for Linux & Mac I'll revisit them later.

From: TakisV

This Post:
11
318389.5 in reply to 318389.4
Date: 3/12/2023 4:22:30 PM
Buckets Galaxy
II.3
Overall Posts Rated:
6868
Second Team:
Stars Galaxy
It's easy to use, great work. Thank you for sharing!

This Post:
00
318389.6 in reply to 318389.1
Date: 3/14/2023 9:48:35 AM
QQguest
II.3
Overall Posts Rated:
279279
Wow! But is it some kind of data mining? Will we be banned if we use this tool?

This Post:
22
318389.7 in reply to 318389.6
Date: 3/14/2023 10:19:11 AM
Pony Slaystation
III.12
Overall Posts Rated:
5858
I don't think anyone is going to be banned for using this. The Game Manual talks about data mining and here's what it says:

The use of web-based data mining tools, “crawler bots,” or any other software designed to use our bandwidth intensively is strictly forbidden, and your account will be banned. If you really want access to large amounts of data, ask one of the BBs, and we’ll do what we can to provide it to you.


So keeping in mind the bold part, here are some approximate numbers:
- The amount of data downloaded by the browser user to open BB welcome webpage: 1.9 MB
- The amount of data used to get boxscore from BBAPI: 25 KB
- The amount of data this tool uses to gather statistics about single game: 12 KB

This tool or any BBAPI calls are less than 1% of normal webpage content. And this tool uses data that is encoded, and thus is likely to use less data than the BBAPI.

From: Ido

This Post:
11
318389.8 in reply to 318389.7
Date: 3/19/2023 5:36:53 AM
Killers Reformed
Ligat Ha'al
Overall Posts Rated:
273273
Second Team:
Raanana Farmers
Thanks for sharing! Looks interesting, will give it a go!