5/27/2023 0 Comments World of tanks download pcachievements = wot.player_achivements(load_once=True) The data can be accessed from the wot objects for further development. renew_token () print ( new_token_data )Īll data from the Tankopedia part of the API needs to be loaded only once in the database, otherwise this will be duplicated.įor ease, the argument load_once is by default set to True. vehicle_statistics () # Renew access token new_token_data = wot. tankopedia_badges ( load_once = True ) # Extract Player Vehicles Data wot. tankopedia_maps ( load_once = True ) wot. tankopedia_information ( load_once = True ) wot. tankopedia_achievements ( load_once = True ) wot. tankopedia_vehicles ( load_once = True ) wot. player_achievements () # Extract Tankopedia Data wot. get_account_id ( nickname = 'username' ) wot = WotAPI ( application_id = '#', account_id = account_id, token = '#', realm = 'eu' ) # Extract Account Data wot. Usage from wotapi import WotAPI, REALM # Obtain the account id # Since this is a constant it can be executed only once to get the account_id wot = WotAPI ( application_id = '#', realm = REALM. The name of the database is world_of_tanks.db of type sqlite. The database is automatically createdĪt the location where the script is executed. The package will require the following from the official World of Tanks Developer API page.Īll data extracted will be written to a local sqlite database ready to be accessed. This package will extract data from the Wargaming World of Tanks API.Ĭurrently, this works only for the PC version with the rest of the platforms to be implemented in future iterations.
0 Comments
Leave a Reply. |