154 lines
5.7 KiB
Markdown
Raw Permalink Normal View History

2025-02-28 19:36:47 -05:00
[![Python](https://img.shields.io/badge/Python-v3.9.13-3776AB?logo=python&logoColor=yellow&labelColor=blue&color=grey)](https://www.python.org/ftp/python/3.9.13/)
[![Discord](https://img.shields.io/discord/971134884703784960?color=%237289DA&label=members&logo=discord&logoColor=%23FFFFFF)](https://discord.rimmyscorner.com)
2025-02-28 18:31:01 -05:00
[![Release](https://img.shields.io/gitea/v/release/Rim/detailed-cod-tracker?color=green&gitea_url=https%3A%2F%2Fgit.rimmyscorner.com%2F&display_name=release)](https://git.rimmyscorner.com/Rim/detailed-cod-tracker/releases/tag/latest)
[![Website](https://img.shields.io/badge/Developer's-Website-red)](https://rimmyscorner.com/)
2025-02-28 01:54:41 -05:00
# Modern Warfare 2019 Advanced Statistics Tracker
2023-10-03 01:50:06 -04:00
2025-02-28 01:54:41 -05:00
Access comprehensive Call of Duty statistics directly from your command line. No more visiting third-party tracking websites when you can retrieve **every statistic** Call of Duty records in under a minute.
2023-10-03 01:50:06 -04:00
2025-02-28 01:54:41 -05:00
> View example outputs in the `/examples/` directory
2023-10-03 01:50:06 -04:00
2023-10-14 04:01:41 -04:00
## Features
2025-02-28 01:54:41 -05:00
- **Complete Statistics Access**: Download detailed player statistics including lifetime stats, match history, and seasonal rewards
- **Enhanced Sorting**: Sort statistics more effectively than the in-game Barracks
- **Human-Readable Formats**: Convert timestamps and code names to user-friendly formats
- **Detailed Match History**: Split match data into separate files for easier analysis
- **Game Information**: Access lists of all maps and game modes in current rotation
2023-10-14 04:01:41 -04:00
## Prerequisites
2023-10-14 04:35:12 -04:00
2025-02-28 01:54:41 -05:00
- Call of Duty account with API security settings set to "Open"
2025-03-01 16:28:01 -05:00
- Web browser (Tested with Chromium)
2025-02-28 01:54:41 -05:00
- Python 3.x (optional, tested with Python 3.9.13)
2023-10-14 04:01:41 -04:00
2025-02-28 01:54:41 -05:00
## Installation Options
2023-10-14 04:01:41 -04:00
2025-02-28 01:54:41 -05:00
### Option 1: Download the Latest Release (Recommended)
2023-10-14 04:01:41 -04:00
2025-03-01 16:28:01 -05:00
1. Download `cod_api_tool.exe` from the [latest release](https://git.rimmyscorner.com/Rim/detailed-cod-tracker/releases/tag/latest)
2. Run the executable for GUI mode **OR** open a shell in the download directory
2025-02-28 01:54:41 -05:00
3. Execute the tool using the syntax below:
2023-12-25 05:50:26 -05:00
2025-02-28 01:54:41 -05:00
```
2025-03-01 16:28:01 -05:00
cod_api_tool.exe [arguments]
2025-02-28 01:54:41 -05:00
```
2023-12-25 05:50:26 -05:00
2025-02-28 01:54:41 -05:00
### Option 2: Clone the Repository
2023-12-25 05:50:26 -05:00
2025-02-28 01:54:41 -05:00
1. Clone the repository:
2023-10-08 07:23:50 -04:00
```
2025-03-01 16:28:01 -05:00
git clone https://git.rimmyscorner.com/Rim/detailed-cod-tracker.git && cd detailed-cod-tracker
2023-10-08 07:23:50 -04:00
```
2023-10-03 05:44:39 -04:00
2025-02-28 01:54:41 -05:00
2. Run the setup script:
2023-10-14 04:01:41 -04:00
```
2025-02-28 01:54:41 -05:00
python setup.py
2023-10-14 04:01:41 -04:00
```
2025-03-01 16:28:01 -05:00
3. Activate the virtual environment
```
venv/Scripts/activate
```
4. Run the tool
```
python cod_api_tool.py [arguments]
```
2025-02-28 01:54:41 -05:00
## Authentication Setup
### Obtaining your ACT_SSO_COOKIE
1. Log in to [Call of Duty](https://www.callofduty.com)
2. Open developer tools (F12)
3. Navigate to: Application → Storage → Cookies → https://www.callofduty.com/
4. Copy the value of `ACT_SSO_COOKIE`
5. Provide this value when prompted by the tool
### Setting up userInfo.json (Required for Advanced Features)
Due to recent API changes, additional steps are required for certain features:
1. Navigate to `https://profile.callofduty.com/cod/userInfo/{ACT_SSO_COOKIE}` (replace with your actual cookie)
2. Copy the entire content
3. Create a file named `userInfo.json` in the tool's directory
4. Paste the content and remove `userInfo(` from the beginning and `);` from the end
- Alternatively, use the regex pattern in `sanitize_userInfo_regex.txt`
5. Run the tool with the `-a` flag to access advanced features
## Command Line Reference
2023-10-14 04:01:41 -04:00
```
2025-02-28 01:54:41 -05:00
usage: cod_api_tool.py [-h] [-tz {GMT,EST,CST,PST}] [-p PLAYER_NAME] [-a]
[-sl] [-id] [-m] [-i] [-f] [-e] [-cp] [-ca] [-s] [-c]
[-sm] [-csd] [-cmd] [-cff] [-cef]
2023-10-14 04:01:41 -04:00
```
2025-02-28 01:54:41 -05:00
### Default Options
| Argument | Description |
|----------|-------------|
| `-h`, `--help` | Show help message and exit |
| `-tz`, `--timezone` | Specify timezone (GMT, EST, CST, PST) |
### Data Fetching Options
| Argument | Description |
|----------|-------------|
| `-p PLAYER_NAME`, `--player_name PLAYER_NAME` | Target player's username (with #1234567) |
| `-a`, `--all_stats` | Fetch all available statistics |
| `-sl`, `--season_loot` | Fetch only seasonal reward data |
| `-id`, `--identities` | Fetch only logged-in identities data |
| `-m`, `--maps` | Fetch only map list data |
| `-i`, `--info` | Fetch only general information |
| `-f`, `--friendFeed` | Fetch only friend feed |
| `-e`, `--eventFeed` | Fetch only event feed |
| `-cp`, `--cod_points` | Fetch only COD Point balance |
| `-ca`, `--connected_accounts` | Fetch only connected accounts data |
| `-s`, `--settings` | Fetch only account settings |
### Data Processing Options
| Argument | Description |
|----------|-------------|
| `-c`, `--clean` | Beautify all data |
| `-sm`, `--split_matches` | Split matches into separate JSON files |
| `-csd`, `--clean_stats_data` | Beautify stats.json data |
| `-cmd`, `--clean_match_data` | Beautify match_info.json data |
| `-cff`, `--clean_friend_feed` | Clean friend feed data |
| `-cef`, `--clean_event_feed` | Clean event feed data |
## Examples
**Basic Usage: Retrieve Player Statistics**
2023-10-14 04:01:41 -04:00
```
2025-02-28 18:31:01 -05:00
python cod_api_tool.py -p YourUsername#1234567
2023-10-14 04:01:41 -04:00
```
2025-02-28 01:54:41 -05:00
**Full Data Collection with Cleaning**
2023-10-14 04:01:41 -04:00
```
2025-02-28 18:31:01 -05:00
python cod_api_tool.py -p YourUsername#1234567 -a -c -sm
2023-10-14 04:01:41 -04:00
```
2023-10-14 04:05:49 -04:00
2025-02-28 01:54:41 -05:00
**Process Existing Data**
```
2025-02-28 18:31:01 -05:00
python cod_api_tool.py -c -sm
2025-02-28 01:54:41 -05:00
```
> All data is saved to the `/stats/` directory
## Advanced Sorting
The tool offers enhanced sorting capabilities:
2023-10-03 05:44:39 -04:00
2025-02-28 01:54:41 -05:00
- Game modes sorted by **Time Played** (descending)
- Weapons sorted by **Kills** (descending)
- Field upgrades sorted by **Uses** (descending)
- Equipment (lethal and tactical) sorted by **Uses** (descending)
- Scorestreaks sorted by **Times Awarded** (descending)
2025-02-28 18:31:01 -05:00
- Accolades sorted in descending order
# Credits
- [Todo Lodo](https://github.com/TodoLodo) - Call of Duty API Python Wrapper / Codebase Developer
- [Engineer15](https://github.com/Engineer152) - Call of Duty API Python Wrapper / Codebase Developer
- [Werseter](https://github.com/Werseter) - Call of Duty API Python Wrapper / Codebase Contributor