我的数据库需要所有 cs:go 皮肤(用于武器、箱子、贴纸等)名称和图标 url。
一个例子是:
name: P250 | Asiimov
icon url: http://media.steampowered.com/apps/730/icons/econ/default_generated/weapon_p250_cu_p250_asiimov_light_large.7ccf465f7dc55d2d960465d404c10cbc8c442cee.png
Steam 似乎没有任何 API 路由可以做到这一点。 使用this帖子,我已经能够获取文件items_game.txt、csgo_english.txt和items_game_cdn.txt.
items_game.txt 包含一个
paint_kits
属性,它是一个包含以下格式对象的数组:
"559"
{
"name" "cu_flip_lore"
"description_string" "#Paintkit_cu_lore"
"description_tag" "#Paintkit_cu_lore_Tag"
"style" "7"
"pattern" "flip_lore"
"pattern_scale" "1.000000"
"phongexponent" "255"
"phongintensity" "50"
"ignore_weapon_size_scale" "1"
"only_first_material" "0"
"pattern_offset_x_start" "0.000000"
"pattern_offset_x_end" "0.000000"
"pattern_offset_y_start" "0.000000"
"pattern_offset_y_end" "0.000000"
"pattern_rotate_start" "0.000000"
"pattern_rotate_end" "0.000000"
"wear_remap_min" "0.000000"
"wear_remap_max" "0.650000"
}
使用
name
属性我可以获得items_game_cdn
文件中的图标url和csgo_english
中的皮肤类型。
我的问题是:如何在不解析
items_game
属性的情况下获取description_tag
文件中每个项目的武器类型(AWP,P250等)?第二个是如何检索不在 items_game_cdn
文件中的贴纸、案例等的名称和 url?