mirror of
https://github.com/Ahrimdon/detailed-cod-tracker.git
synced 2025-01-18 08:25:00 -05:00
maint(): get_cod_stats --> cod_api_tool
This commit is contained in:
parent
cb0a75cf68
commit
fbfa8df406
16
README.md
16
README.md
@ -35,12 +35,12 @@ Get every single statistic Call of Duty <u>***tracks***</u> in one place, under
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
#### Using the Latest Release **(Easiest)**
|
#### Using the Latest Release **(Easiest)**
|
||||||
- Navigate to the latest release and download `get_cod_stats.exe`
|
- Navigate to the latest release and download `cod_api_tool.exe`
|
||||||
- Open a command line of your choise, navigate to the directory using `cd` and follow examples below
|
- Open a command line of your choise, navigate to the directory using `cd` and follow examples below
|
||||||
```
|
```
|
||||||
cd "C:\Users\John\Desktop\detailed-cod-tracker"
|
cd "C:\Users\John\Desktop\detailed-cod-tracker"
|
||||||
|
|
||||||
get_cod_stats.exe [-h] [-p PLAYER_NAME] [-a] [-sl] [-id] [-m] [-i] [-f] [-e] [-cp] [-ca] [-s] [-c] [-sm] [-csd] [-cmd] [-cff] [-cef]
|
cod_api_tool.exe [-h] [-p PLAYER_NAME] [-a] [-sl] [-id] [-m] [-i] [-f] [-e] [-cp] [-ca] [-s] [-c] [-sm] [-csd] [-cmd] [-cff] [-cef]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Cloning the Repository
|
#### Cloning the Repository
|
||||||
@ -62,13 +62,13 @@ get_cod_stats.exe [-h] [-p PLAYER_NAME] [-a] [-sl] [-id] [-m] [-i] [-f] [-e] [-c
|
|||||||
3. Go to `https://profile.callofduty.com/cod/userInfo/{ACT_SSO_COOKIE}` and copy the contents into `userInfo.json` in the repo's directory
|
3. Go to `https://profile.callofduty.com/cod/userInfo/{ACT_SSO_COOKIE}` and copy the contents into `userInfo.json` in the repo's directory
|
||||||
> *Note:* Create the `userInfo.json` file manually
|
> *Note:* Create the `userInfo.json` file manually
|
||||||
4. In the newly created `userInfo.json`, delete "*userInfo(*" and "*);*" at the beginning and end of the file. Alternatively, you can find and replace using the regular expression inside `sanitize_userInfo_regex.txt`
|
4. In the newly created `userInfo.json`, delete "*userInfo(*" and "*);*" at the beginning and end of the file. Alternatively, you can find and replace using the regular expression inside `sanitize_userInfo_regex.txt`
|
||||||
5. Run `get_cod_stats.py` using the `-a` argument (e.g. `python get_cod_stats.py -p Ahrimdon -a`)
|
5. Run `cod_api_tool.py` using the `-a` argument (e.g. `python cod_api_tool.py -p Ahrimdon -a`)
|
||||||
|
|
||||||
If done correctly, this should return the extra API information.
|
If done correctly, this should return the extra API information.
|
||||||
|
|
||||||
## Command Line Arguments
|
## Command Line Arguments
|
||||||
```
|
```
|
||||||
usage: get_cod_stats.py [-h] [-p PLAYER_NAME] [-a] [-sl] [-id] [-m] [-i] [-f] [-e] [-cp] [-ca] [-s] [-c] [-sm] [-csd] [-cmd] [-cff] [-cef]
|
usage: cod_api_tool.py [-h] [-p PLAYER_NAME] [-a] [-sl] [-id] [-m] [-i] [-f] [-e] [-cp] [-ca] [-s] [-c] [-sm] [-csd] [-cmd] [-cff] [-cef]
|
||||||
|
|
||||||
Detailed Modern Warfare (2019) Statistics Tool
|
Detailed Modern Warfare (2019) Statistics Tool
|
||||||
|
|
||||||
@ -106,23 +106,23 @@ Data Cleaning Options:
|
|||||||
## Command Examples
|
## Command Examples
|
||||||
**Gather Player's Lifetime Statistics & 20 Recent Games**
|
**Gather Player's Lifetime Statistics & 20 Recent Games**
|
||||||
```
|
```
|
||||||
get_cod_stats.exe -p Ahrimdon#1234567
|
cod_api_tool.exe -p Ahrimdon#1234567
|
||||||
```
|
```
|
||||||
|
|
||||||
**Sort, clean, and organize all data**
|
**Sort, clean, and organize all data**
|
||||||
|
|
||||||
```
|
```
|
||||||
get_cod_stats.exe -c
|
cod_api_tool.exe -c
|
||||||
```
|
```
|
||||||
|
|
||||||
**Split matches into separate files**
|
**Split matches into separate files**
|
||||||
```
|
```
|
||||||
get_cod_stats.exe -sm
|
cod_api_tool.exe -sm
|
||||||
```
|
```
|
||||||
|
|
||||||
**Gather all data**
|
**Gather all data**
|
||||||
```
|
```
|
||||||
get_cod_stats.exe -p Ahrimdon#1234567 -a
|
cod_api_tool.exe -p Ahrimdon#1234567 -a
|
||||||
```
|
```
|
||||||
|
|
||||||
> All data is saved to `/stats/`
|
> All data is saved to `/stats/`
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
cd /d %~dp0 :: Change directory to the location of this batch file
|
cd /d %~dp0 :: Change directory to the location of this batch file
|
||||||
call ../venv/Scripts/activate :: Activate the virtual environment
|
call ../venv/Scripts/activate :: Activate the virtual environment
|
||||||
pyinstaller --noconfirm --onefile --console --icon "../assets/icon.ico" main.py --distpath="../build/bin" -n "get_cod_stats"
|
pyinstaller --noconfirm --onefile --console --icon "../assets/icon.ico" main.py --distpath="../build/bin" -n "cod_api_tool"
|
||||||
|
|
||||||
rmdir /s /q build
|
rmdir /s /q build
|
||||||
del /q "get_cod_stats.spec"
|
del /q "cod_api_tool.spec"
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
@ -6,7 +6,7 @@ import PyInstaller.__main__
|
|||||||
# Constants for your project
|
# Constants for your project
|
||||||
SCRIPT = "main.py"
|
SCRIPT = "main.py"
|
||||||
ICON = "assets/icon.ico"
|
ICON = "assets/icon.ico"
|
||||||
NAME = "get_cod_stats"
|
NAME = "cod_api_tool"
|
||||||
DIST_PATH = "bin"
|
DIST_PATH = "bin"
|
||||||
|
|
||||||
# Path to the 'frequencies.json' file within the charset_normalizer package
|
# Path to the 'frequencies.json' file within the charset_normalizer package
|
||||||
@ -30,7 +30,7 @@ PyInstaller.__main__.run([
|
|||||||
|
|
||||||
# Clean up the build directory and spec file
|
# Clean up the build directory and spec file
|
||||||
shutil.rmtree('build', ignore_errors=True)
|
shutil.rmtree('build', ignore_errors=True)
|
||||||
os.remove('get_cod_stats.spec')
|
os.remove('cod_api_tool.spec')
|
||||||
|
|
||||||
# Optional: Pause at the end (like the 'pause' in batch script)
|
# Optional: Pause at the end (like the 'pause' in batch script)
|
||||||
input("Press Enter to continue...")
|
input("Press Enter to continue...")
|
||||||
|
Loading…
Reference in New Issue
Block a user