Skip to content

Instantly share code, notes, and snippets.

View HADB's full-sized avatar

Bean Deng 邓斌 HADB

View GitHub Profile
@HADB
HADB / fetch-starcraft-2-ladders-data-of-kr-region.md
Last active November 15, 2021 08:58
Two ways to fetch starcraft 2 ladders data of KR region

Hi, there! Here's how I fetch the data of KR region in sczone-crawler.

We know that the League api and Legacy Ladder api are not working as expected in KR region. But other apis still work. So we just have to find a way to get the ladders.

An inefficient way:

  1. Loop all the characters of KR.
  2. Use Profile Ladder Summary api (/sc2/profile/:regionId/:realmId/:profileId/ladder/summary) with each profileId above to get all ladders of each character.
  3. Use Profile Ladder api (/sc2/profile/:regionId/:realmId/:profileId/ladder/:ladderId) with profileId and ladderId above to get all teams of each ladder.
  4. Add new characters found in these ladder teams.