Ok, I worked on a brand-new version you can get here:
https://gist.github.com/philgruneich/2cd7af31bd666c9bc7d5Notes:
1. Before we move on, you should install 2 new modules:
keyring and
ujson. Just do as when you installed requests and BeautifulSoup4
2. This script doesn't display the team names anymore. Neither displays the information for both teams. I believe it makes the whole thing more focused.
3.
You'll be prompted for your username and password, they'll be stored in your machine (that's what the keyring module does). I need to create a GLB2 session so we can download the JSON with the entire offensive playbook, which we use to find out the kinds of plays and the nš of receivers. Let me know if you run into troubles with this module since I haven't used it before.
4. Instead of editing the code, now you'll be prompted to insert the
Game ID and the
Team ID of the team you want to scout afterwards.
5. If you're feeling adventurous, you can look for a dictionary called
yards. There you can customize what the script will consider as
Very Short, Short, Medium and Long, just as in the Tactics section of GLB2.
6. Let's talk about improvements: This script is at least
8 times faster than the previous version. It displays only the valid information, so
no more 0 (0%). It
sorts all results in an order I consider pleasant to the eye. It
shows percentages for the receivers considering the down, which may be
great for you to decide your blitzes.
7. Hope you enjoy, now let me sleep.