The purpose of this app is to list the match scores for an APA team so you can see how each player has been performing this season.
export APA_EMAIL=<email>
export APA_PASSWORD=<password>
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
to install necessary Python librariespython3 src/main/main.py
. Alternatively, you can run this app with an IDE (like Visual Studio Code) by navigating to the src/main/main.py
file and running the current fileLet's say you want to find which opponent your 8 ball team is playing next and print out their team results, meaning who each team member has played throughout the season and how they've done against them. Complete these following steps to do so:
In the src/main/main.py
file, in the main
function, add these lines:
# scrape the APA website for your season and update the database
useCase.scrapeUpcomingTeamResults()
# print your opponent's team results
useCase.printUpcomingTeamResults()
# If you wanted to print the json version of the team results to the src/resources/teamResults.json file, add the following line
useCase.printUpcomingTeamResultsJson()
The use case that this app was intended for is to print a player's team results. You can see how the json of this is structured in the src/resources/teamResults.json
file.
To see how the classes are structured, this diagram is a rough representation of how the various classes are organized: