Skip to main content

No project description provided

Project description

AW_API

Unofficial Armored Warfare API

Python package Downloads

Версия для русскоязычных пользователей

Requirements

requests Python package for handling API requests

beautifulsoup4 Python HTML parser


python 3.x - You need to have Python 3 installed in order to use this

Installing

Open terminal or command prompt and type pip install aw-api in order to install the latest stable version of library from PyPI.

Usage

  1. In order to get access to statistics page you need to get authorized cookies from armata.my.games. You can export them using EditThisCookie Chrome extension

cookie export

cookie.json file example

Quick example

import json
from aw_api import API

aw_api_client = API(raw_cookie=json.loads(open('cookies.json').read()))

my_pvp_statistics = aw_api_client.get_statistic_by_nickname('MyNickname')

print(
    f'My nickname is {my_pvp_statistics.nickname}, I have played {my_pvp_statistics.battles} in PvP and have '
    f'{my_pvp_statistics.winrate} percents of wins. In average I deal {my_pvp_statistics.damage} per battle and kill {my_pvp_statistics.average_kills} enemies.'
    f'My teammates do {my_pvp_statistics.average_spotting} damage on tanks spotted by me. '
)

More detailed information about methods, and their arguments can be found on wiki

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

aw_api-2.0.4-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file aw_api-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: aw_api-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Windows/11

File hashes

Hashes for aw_api-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c516f1635a9ab0df83a2b1b8fa83f7749711607a91df035dbddbf57a0c7d6120
MD5 91137a938493840810449952abc65235
BLAKE2b-256 4439ed5e3f72109eeaea443949943be641600f8e8dbc9d0ea58007c6e5d90387

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page