Jump to content


BlitzStars | BETA

stats statistics history tracking compare improve guide

  • Please log in to reply
1678 replies to this topic

hson_hson #81 Posted 07 October 2015 - 01:30 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

So again:

If you use my suggested "first script" in http://forum.wotblitz.eu/index.php?act=findpost&pid=212778 you don't have to brute force so much.

Yes, the first batch to find all WGN accounts from the start to today could be considered a "brute force".

But second run, you only have to "brute force" from the highest WGN account id until the WGN API tells you no more exists.

Plus check all WGN accounts that didn't play Blitz if they have started to play



pasys #82 Posted 07 October 2015 - 01:30 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View Posthson_hson, on 07 October 2015 - 02:26 PM, said:

 

And if you use https://api.worldoftanks.eu/wgn/account/info you will see all games a user has played.

 

Example for my own account

Spoiler

 

but this you just need if you want data from all games. if you just need from blitz, then use directly blitz api. And whit the full WG api you dont know which server he played.


My Ranking and Stat Site http://wot.maxra.de

hson_hson #83 Posted 07 October 2015 - 01:36 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View Postpasys, on 07 October 2015 - 02:28 PM, said:

 

how many request you made to get 40k datasets you get ?

 

i made about 30-40k in 24h by iterating account_ids, that been 10k datasets. more was not possible from api site 

 

I did a little test to get the data in http://forum.wotblitz.eu/index.php?act=findpost&pid=211806 and that was

3*100 (3 starting points, 100 calls with 100 "potential" account ids each) calls to WGN API to check for "wotb" accounts which resulted in 10737 valid accounts

I then did roughly 110 calls to the Blitz API to get the player data.

So ~410 calls in total to get the data of 10737 blitz accounts



pasys #84 Posted 07 October 2015 - 01:36 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View Posthson_hson, on 07 October 2015 - 02:30 PM, said:

So again:

If you use my suggested "first script" in http://forum.wotblitz.eu/index.php?act=findpost&pid=212778 you don't have to brute force so much.

Yes, the first batch to find all WGN accounts from the start to today could be considered a "brute force".

But second run, you only have to "brute force" from the highest WGN account id until the WGN API tells you no more exists.

Plus check all WGN accounts that didn't play Blitz if they have started to play

 

brutforcing by name is faster then iterate Account Ids

 

by iterating i can make in 24h about 40k request and get about 10k to 20k user accounts more is not possible by the WG Api 

by username brutforcing i get in 24h als 40k request but got about 100k user accounts


My Ranking and Stat Site http://wot.maxra.de

SockRobber #85 Posted 07 October 2015 - 01:37 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Postpasys, on 07 October 2015 - 01:28 PM, said:

 

how many request you made to get 40k datasets you get ?

 

i made about 30-40k in 24h by iterating account_ids, that been 10k datasets. more was not possible from api site 

 

I didn't count the requests. As a guess, I made < 15k requests. On average (per request, so per 100 account_ids checked) 2-10 blitz accounts that passed my qualifications. And 10-50 that didn't. HOWEVER, I chose 'starting' account_ids (per region) based on roughly when Blitz launched, rather than from the 'start' of all wargaming accounts. No doubt that makes a significant difference.

 

Yes, you don't need to check the 'full' API re games played etc - but that does prove that the account_id is a wargamming account ID rather than a unique blitz ID. And that is good information to know.


BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz


hson_hson #86 Posted 07 October 2015 - 01:39 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View Postpasys, on 07 October 2015 - 02:30 PM, said:

but this you just need if you want data from all games. if you just need from blitz, then use directly blitz api. 

 

Ehh, that is to get the account ids instead of your "username brute force" approach.

To get the Blitz player data, you still use the regular Blitz API.

 

View Postpasys, on 07 October 2015 - 02:30 PM, said:

 And whit the full WG api you dont know which server he played.

 

 

Yes you know, you still contact a specific regional server (i.e api.worldoftanks.eu)



hson_hson #87 Posted 07 October 2015 - 01:42 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View Postpasys, on 07 October 2015 - 02:36 PM, said:

 

brutforcing by name is faster then iterate Account Ids

 

by iterating i can make in 24h about 40k request and get about 10k to 20k user accounts more is not possible by the WG Api 

by username brutforcing i get in 24h als 40k request but got about 100k user accounts

 

I got my 10k describe in http://forum.wotblitz.eu/index.php?act=findpost&pid=212917 in less than 2 hours (I'll run it again and post more accurate time), including getting their Blitz statistics.

 



SockRobber #88 Posted 07 October 2015 - 01:42 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Posthson_hson, on 07 October 2015 - 01:36 PM, said:

 

I did a little test to get the data in http://forum.wotblitz.eu/index.php?act=findpost&pid=211806 and that was

3*100 (3 starting points, 100 calls with 100 "potential" account ids each) calls to WGN API to check for "wotb" accounts which resulted in 10737 valid accounts

I then did roughly 110 calls to the Blitz API to get the player data.

So ~410 calls in total to get the data of 10737 blitz accounts

 

Wait a sec - think I'm missing something - can you filter by game type on this API call?

I mean, where's the advantage against just checking vs a null result in an iterated Blitz API call?


BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz


pasys #89 Posted 07 October 2015 - 01:43 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View Posthson_hson, on 07 October 2015 - 02:39 PM, said:

 

Ehh, that is to get the account ids instead of your "username brute force" approach.

To get the Blitz player data, you still use the regular Blitz API.

 

 

Yes you know, you still contact a specific regional server (i.e api.worldoftanks.eu)

oh yes, i forget it 


My Ranking and Stat Site http://wot.maxra.de

pasys #90 Posted 07 October 2015 - 01:45 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View PostSockRobber, on 07 October 2015 - 02:42 PM, said:

 

Wait a sec - think I'm missing something - can you filter by game type on this API call?

I mean, where's the advantage against just checking vs a null result in an iterated Blitz API call?

 

the only thing is that you know if he played some other WG games and you get more results from players who not play blitz
My Ranking and Stat Site http://wot.maxra.de

hson_hson #91 Posted 07 October 2015 - 01:47 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View PostSockRobber, on 07 October 2015 - 02:42 PM, said:

 

Wait a sec - think I'm missing something - can you filter by game type on this API call?

I mean, where's the advantage against just checking vs a null result in an iterated Blitz API call?

 

No you can't.

But you can get all valid WGN account id's and store who didn't play Blitz at time A.

Then when you check again at time B you can recheck just those who didn't play Blitz to see if they have started.

This saves a ton of API calls.

 



SockRobber #92 Posted 07 October 2015 - 01:53 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Posthson_hson, on 07 October 2015 - 01:47 PM, said:

 

No you can't.

But you can get all valid WGN account id's and store who didn't play Blitz at time A.

Then when you check again at time B you can recheck just those who didn't play Blitz to see if they have started.

This saves a ton of API calls.

 

 

Ah okay - thought I was missing a trick for a moment! 

Assuming the IDs are entirely sequential (with a starting point) - you could just avoid that step though. I mean, any 'null' result on the Blitz API in an ID that is lower than the highest ID, suggests the same thing, doesn't it?

 

That said, as I'm not looking for all accounts like pasys, rather just a selection, so I'm not too worried.


BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz


pasys #93 Posted 07 October 2015 - 01:54 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View Posthson_hson, on 07 October 2015 - 02:47 PM, said:

 

No you can't.

But you can get all valid WGN account id's and store who didn't play Blitz at time A.

Then when you check again at time B you can recheck just those who didn't play Blitz to see if they have started.

This saves a ton of API calls.

 

 

thats not bad and also check if there new ids by start iterate by last id. never think about that


My Ranking and Stat Site http://wot.maxra.de

pasys #94 Posted 07 October 2015 - 01:55 PM

    Junior Sergeant

  • Player
  • 6484 battles
  • 202
  • Member since:
    04-05-2013

View PostSockRobber, on 07 October 2015 - 02:53 PM, said:

 

Ah okay - thought I was missing a trick for a moment! 

Assuming the IDs are entirely sequential (with a starting point) - you could just avoid that step though. I mean, any 'null' result on the Blitz API in an ID that is lower than the highest ID, suggests the same thing, doesn't it?

 

That said, as I'm not looking for all accounts like pasys, rather just a selection, so I'm not too worried.

 

at firsttime you must check all acconts, later its easy to find new accounts
My Ranking and Stat Site http://wot.maxra.de

hson_hson #95 Posted 07 October 2015 - 02:07 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

Ok, here it is
Three runs, checking 10k possible account id's each time from 3 different start id.
I wait 1sec between each API call (both to WGN and Blitz API)

 

First run start time 15:49:40, end time 15:52:18

Spoiler

 

Second run, start time 15:54:11, end time 15:57:00

 

Spoiler

 

 

Third run, start time 15:58:49, end time 16:01:58

 

Spoiler

 

Total time: 8:36


Edited by hson_hson, 07 October 2015 - 02:13 PM.


SockRobber #96 Posted 07 October 2015 - 02:12 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Posthson_hson, on 07 October 2015 - 02:07 PM, said:

 

Ok, here it is

Three runs, checking 10k possible account id's each time from 3 different start id.

I wait 1sec between each API call (both to WGN and Blitz API)

 

First run start time 15:49:40, end time 15:52:18

Spoiler

 

Second run, start time 15:54:11, end time 15:57:00

Spoiler

 

Third run, start time 15:58:49, end time 16:01:58

Spoiler

 

 

 

 

Very interesting stats - and goes to show just how many people play very few games. Only 4 that meet my criteria from that last run, out of nearly 5k total! And heck, less than 800 of the 5k even played over 100 battles!

BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz


hson_hson #97 Posted 07 October 2015 - 02:14 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View PostSockRobber, on 07 October 2015 - 03:12 PM, said:

 

Very interesting stats - and goes to show just how many people play very few games. Only 4 that meet my criteria from that last run, out of nearly 5k total! And heck, less than 800 of the 5k even played over 100 battles!

 

Well, the last batch are very fresh accounts, they are from mid september

hson_hson #98 Posted 07 October 2015 - 02:16 PM

    First Sergeant

  • Player
  • 30342 battles
  • 3,656
  • Member since:
    08-19-2014

View PostSockRobber, on 07 October 2015 - 02:53 PM, said:

Assuming the IDs are entirely sequential (with a starting point) - you could just avoid that step though. I mean, any 'null' result on the Blitz API in an ID that is lower than the highest ID, suggests the same thing, doesn't it?

 

Well, brute force increment on WGN API is faster than Blitz API it seems



SockRobber #99 Posted 07 October 2015 - 02:16 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Posthson_hson, on 07 October 2015 - 02:14 PM, said:

 

Well, the last batch are very fresh accounts, they are from mid september

 

Very true. Though even the first group is <4% by my qualifications.

BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz


SockRobber #100 Posted 07 October 2015 - 02:20 PM

    Senior Sergeant

  • Player
  • 21499 battles
  • 698
  • [PHNX]
  • Member since:
    12-05-2014

View Posthson_hson, on 07 October 2015 - 02:16 PM, said:

 

Well, brute force increment on WGN API is faster than Blitz API it seems

 

There's lower max API call thresholds?

 

Because - otherwise, you're basically checking twice - once to get the IDs from the general API, and another time to get the blitz account stats from the blitz API (battles played, last battle time, etc, that are used to filter accounts (unless that data is also in the first call, haven't checked)).


BlitzStars.com - World of Tanks: Blitz player statistics signature

BlitzStars.com / (Blitz) Tank Compare

Player and Tank Statistics for WoT: Blitz






Also tagged with stats, statistics, history, tracking, compare, improve, guide

6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users