-
Welcome to the Basketball Webscraper Attached to Galileo sandbox API
-
What you first see
-
Seeing available commands
-
Adding a player to be tracked. Creates a cardholder account on Galileo for the player with their actual birthday.
-
Showing the new addition
-
Paying the team. Does not break on invalid input, guides user through process. Pays players and coaches based on stats from that game.
-
How to refresh the access code with Galileo, so simple!
-
More examples of paying the team. Notice it handles players missing games well.
-
Handles errors and provides instructions for users.
-
-
Inspiration
Connect Galileo's API framework with a basketball stats website to pay players based on statistics.
What it does
Runs a python script that takes in user input to do the following: Creates Galileo cardholders for requested players Pays those cardholders based on player stats for specific games. Transfers money from the player cardholders to coach cardholder for mistakes such as turnovers. Refresh the authorization code from Galileo so that future requests can be made.
How I built it
I learned about Galileo's sandbox API's using postman. I used beautiful soup to web scrape basketballreference.com Built a library of methods to combine web scraping and Galileo API requests in PyCharm.
Challenges I ran into
Making transfers from cardholders back to the mfa account. Also deleting my test card users I would like to clean up, or players I would no longer like to track.
Accomplishments that I'm proud of
It works! I'm also proud of how easy it is to navigate the program's command line.
What I learned
I learned an incredible about API requests inside a Python environment, and unexpected status code handling.
What's next for GalileoBasketballWebScraper
Be able to remove players from Galileo to no longer be tracked. Expand for future seasons and postseason games.
Log in or sign up for Devpost to join the conversation.