Based on the ITF Match Recorder by awest25. This version utilizes two Python scripts for recording live streams off of PlaySight. These scripts utilize Selenium for browser automation, Beautiful Soup for web scraping, and FFmpeg for live-stream recording .
- requests
- beautifulsoup4
- InquirerPy
- ffmpeg
- selenium
- webdriver_manager
To install run:
pip install -r requirements.txt
Ensure you have ffmpeg installed on your system. You can download it from FFmpeg's official website. Otherwise, you can install it using Homebrew on macOS:
brew install ffmpeg
**Either use an existing virtual environment or follow the steps below. **
To create a virtual environment called venv
and install the required packages, follow these steps:
- Open a terminal or command prompt.
- Navigate to the project directory:
~/match-recorder
. - Run the following command to create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Once the virtual environment is activated, install the required packages from the
requirements.txt
file:
pip install -r requirements.txt
Now you have successfully set up a virtual environment called venv
and installed the required packages.
To select the team you want to record, open the site_parser.py file and update the url variable:
url = WEB_URL + "/facility/pepperdine-university/home" # <---- Change This line to team of your choice
Run python3 site_parser.py and follow the prompts. You will be asked to enter your PlaySight credentials, select a court to record, and choose the recording duration."