Maybe the easiest way would be to use requests_cache. These are the update frequencies I copied over at some point in time (might have changed): players.xml -> daily XML attributes, it's easy to just pickle your UniverseData for tests, development and everything else. Since the data sets and classes avoid the usage of get_planets_of_player ( 'someSpecialName' ) [ Update frequencies of dataĭon't spam the servers with requests. #%% get the coordinates and names of all the planets of a player universe. This is needs your help since asking the right questions is the key.Į.g. players id name status alliance 0 1 Legor a NaN. universe id player name coords 0 1 1 Arakis 1 : 1 : 2. #%% get a list of all the planets universe. Than you could take a look at the data sets. UniverseQuestions ( universe_id, community ) #%% import ogame_stats #%% supply the two inputs to uniquely identify a universe universe_id = 162 community = 'en' #%% instantiate and thereby load the data universe = ogame_stats. Install the wrapper pip install ogama_data_api
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |