Prerequisites
Before you begin, ensure you have the following installed:- miniforge/miniconda - For Python environment management
- nvm - For Node.js version management
- Google Chrome - For browser-based testing
Using a fresh Conda environment is recommended to avoid dependency conflicts with your existing Python setup.
Python Environment Setup
Create a new Python 3.12 environment
Run the automated setup script to create and activate a new Conda environment:This script will:
- Create a new Conda environment named
bet365-re-jswith Python 3.12 - Activate the environment
- Automatically install pip dependencies
Install Python dependencies manually (if needed)
If you skipped the Conda environment creation or need to reinstall dependencies:This installs the following key dependencies:
mitmproxy- For intercepting and modifying HTTP trafficjsbeautifier- For formatting JavaScript outputrjsmin- For minifying JavaScriptplaywright- For automated browser testingpytest- For running tests
Node.js Setup
Verify Node.js installation
Check if Node.js is installed:The project currently uses Node.js v22.15.0 (specified in
.nvmrc).Install Node.js via nvm (if needed)
If Node.js is not installed, use nvm to install the correct version:This reads the version from
.nvmrc and automatically installs and activates it.Environment Verification
After completing the setup, verify everything is working:Directory Structure
Your environment should have these key directories:The
output/ directory is automatically created when you run mitmproxy and will contain all intercepted and deobfuscated JavaScript files.Troubleshooting
Conda Environment Not Found
Ifconda activate bet365-re-js fails:
