Skip to main content

Armored Warfare unofficial API

Project description

AW_API

Unofficial Armored Warfare API

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

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 Distribution

aw_api-1.1.3.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file aw_api-1.1.3.tar.gz.

File metadata

  • Download URL: aw_api-1.1.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for aw_api-1.1.3.tar.gz
Algorithm Hash digest
SHA256 c85bab48b7c22fcd019e16fd4d56b29a9bba6a7be6f59e02d64ab5df561c9ee0
MD5 5c66211063268dfcdabb32f90fb84716
BLAKE2b-256 8fb44242500bc46733b379918842a24ee3378d60802bbaa1fdb48503d5ca7e03

See more details on using hashes here.

Supported by

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