Jump to content


How can I calculate recent wn8?

wn8 recent

  • Please log in to reply
5 replies to this topic

bartek2210game7 #1 Posted 03 November 2019 - 06:37 PM

    Brigadier

  • Oficer Łączności
  • 24241 battles
  • 4,103
  • [ICOH] ICOH
  • Member since:
    09-13-2013
Hello I need to calculate players wn8 from last 30 days. How can I do this? Can I check past statistics in wg api? The only thing that came to my mind is to save all players statistics to database every day but where can i find list of all players?
Someone has an idea how to do this or suggestions how to count recent wn8 differently?
 

Edited by bartek2210game7, 03 November 2019 - 06:38 PM.


06wallst #2 Posted 04 November 2019 - 02:55 PM

    Corporal

  • Player
  • 34521 battles
  • 116
  • [-SBN-] -SBN-
  • Member since:
    10-09-2011

Here ya go bud :) 

 

https://tanks.gg/eu/bartek2210game7



bartek2210game7 #3 Posted 05 November 2019 - 12:14 PM

    Brigadier

  • Oficer Łączności
  • 24241 battles
  • 4,103
  • [ICOH] ICOH
  • Member since:
    09-13-2013

View Post06wallst, on 04 November 2019 - 01:55 PM, said:

I want to calculate it to my application. No on other website



RaJCeL #4 Posted 05 November 2019 - 12:36 PM

    Captain

  • Player
  • 25620 battles
  • 2,013
  • Member since:
    10-14-2011

I see no other option then gathering data on daily basis to create history of statistics. In WG API perhaps you can't query the history so only actual state is provided.

List of all players is not available. That's why for example on wot-life you can encounter situation that searched player has no history to show - his id is added to the update list for the first time right now.

Also you need to pay attention to is that from one APP_ID you can only send 2 request per second to WG API, so either you make it parallel with many APP_IDs and batch players or you will not fit into 24h to reload data for all players.



bartek2210game7 #5 Posted 05 November 2019 - 12:53 PM

    Brigadier

  • Oficer Łączności
  • 24241 battles
  • 4,103
  • [ICOH] ICOH
  • Member since:
    09-13-2013

View PostRaJCeL, on 05 November 2019 - 11:36 AM, said:

I see no other option then gathering data on daily basis to create history of statistics. In WG API perhaps you can't query the history so only actual state is provided.

List of all players is not available. That's why for example on wot-life you can encounter situation that searched player has no history to show - his id is added to the update list for the first time right now.

Also you need to pay attention to is that from one APP_ID you can only send 2 request per second to WG API, so either you make it parallel with many APP_IDs and batch players or you will not fit into 24h to reload data for all players.

Ok but if i can get only statisctics from real time how for example tanks.gg works where we can see statistics from last 100/1000 battles? Player can play a lot of battles in one day and if I will save statistics to my database one per day I dont have information about specific battle. Moreover in wot we have millions of players so save statistics for all players from last several weeks is nearly impossible.

There's no other way?

Edited by bartek2210game7, 05 November 2019 - 12:54 PM.


RaJCeL #6 Posted 05 November 2019 - 01:34 PM

    Captain

  • Player
  • 25620 battles
  • 2,013
  • Member since:
    10-14-2011

View Postbartek2210game7, on 05 November 2019 - 01:53 PM, said:

Ok but if i can get only statisctics from real time how for example tanks.gg works where we can see statistics from last 100/1000 battles? Player can play a lot of battles in one day and if I will save statistics to my database one per day I dont have information about specific battle. Moreover in wot we have millions of players so save statistics for all players from last several weeks is nearly impossible.

There's no other way?

 

100/1000 perhaps are get to the closer possible values. That's how noobmeter and play4stats(kttc) are working. So sometimes 1000 battles means 950 sometimes 1050.

 

I don't know other way, but maybe it exists.

There https://developers.wargaming.net/reference/all you can see what is possible to request from WG API. I don't find any way to ask for specific timestamp.

 

//EDIT:

But I see that it is possible to crawl WG API to create initial wot players list. It will be time consuming, but it is only initial load. Afer that can be applied a logic for incremental load from time to time.


Edited by RaJCeL, 05 November 2019 - 02:58 PM.






Also tagged with wn8, recent

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users