items-parser is a CS2/CS:GO items_game.txt file parser. The script extracts game's items, such as weapon skins, gloves, keychains, stickers and more! While this repository includes pre-generated output, you can run the script yourself if you need to parse a different version of the files or want the absolute latest data before this repository is updated.
- Medals
- Agents (CT/T)
- Gloves (grouped by base type with paint kits)
- Containers (cases, sticker capsules, graffiti boxes)
- Passes
- Weapon skins (grouped by weapon type)
- Stickers
- Patches
- Keychains
- Music kits
- Python 3.3 or newer
- Source2Viewer (a tool used for exploring Valve's VPK files)
- Python modules:
vdf
Important
Make sure to convert all .txt files to UTF-8 encoding!
- CS2: To get CS2's
items_game.txtfile, use Source2Viewer. Open "Expand" tab. Expand "Counter-Strike 2" and opengame/csgo/pak01_dir.vpk. Navigate toscripts/items/and you should be able to seeitems_game.txtfile. Right-click it and select "Export as is". Export the file to theitems/folder within this project as (for example)cs2.txt. - CS:GO: Right-click on CS:GO (in your Steam library), hover over "Manage" and click on "Browse local files". Navigate to
csgo/scripts/items/and you should be able to seeitems_game.txt. Copy the file to theitems/folder within this project as (for example)csgo.txt.
- CS2: To get CS2's language file, use Source2Viewer. Open "Expand" tab. Expand "Counter-Strike 2" and open
game/csgo/pak01_dir.vpk. Navigate toresource/and you should be able to seecsgo_<LANGUAGE>.txtfiles. Right-click the one you want to use and select "Export as is". Export the file to thelang/folder within this project as (for example)cs2.txt. - CS:GO: Right-click on CS:GO (in your Steam library), hover over "Manage" and click on "Browse local files". Navigate to
csgo/resource/and you should be able to seecsgo_<LANGUAGE>.txt. Copy the file to thelang/folder within this project as (for example)csgo.txt.
Output gets written to the output/ folder.
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Parser:
python main.py
- Improve parsing gloves.
- Parse music kits.
- Save output as SQL, VDF.