DOTA 2 Rampage Finder

A Python desktop app using Kivy to find past game IDs with rampages.

What it is

DOTA 2 Rampage Finder is a Python desktop app that scans your recent DOTA 2 matches and lists the ones where you got a rampage. A rampage is a five-kill streak in a single multi-kill chain. The app returns one link per match, which opens the match page on OpenDota.

The problem

The DOTA 2 client does not let you search your match history for a specific event. To find the match where a rampage happened, you have to open games one by one. The idea for the tool came from a Reddit post by u/michel1990, and I decided to build it.

How it works

The app is two files: main.py holds the logic and styling.kv holds the Kivy layout. A user enters a Steam Account ID (Friend ID), a Steam Web API key and a number of matches. The app then runs this sequence in a background thread:

  1. Request the player's recent match IDs from the Steam Web API (GetMatchHistory).
  2. For each match, request details from the OpenDota API (/api/matches/{id}).
  3. If OpenDota has not parsed the replay (the version field is empty), post a parse request. Poll every 10 seconds, and give up after about a minute.
  4. Read the player's multi_kills map. A 5 key means at least one rampage.
  5. Add a button with the OpenDota match link to the results list.

The Steam API supplies the match list. OpenDota supplies the kill data, because Steam's match history does not include per-player multi-kill counts.

Design decisions

Native desktop UI instead of a web app. The tool runs on one person's machine with that person's API key. A web app would need hosting and would handle users' keys. Kivy keeps the app local. The trade-off is a heavier install than a web page.

Background thread with scheduled UI updates. The scan makes many network calls and waits between them. Running it in a daemon thread keeps the window responsive. Results are added with Clock.schedule_once, so Kivy widgets change on the main thread.

Deliberate delays for rate limits. The code waits one second between matches. When a parse does not finish, it prints a message about a possible API call limit and moves on. This favors finishing a scan over failing on one slow match.

Hard cap of 100 matches. The code clamps the requested count to 100. The README states this as a Steam API restriction.

Run it locally

  1. Install Python and Kivy: pip install kivy requests
  2. Clone the repository: git clone https://github.com/WhyAsh5114/Dota2-Rampage-Finder.git
  3. Get a Steam Web API key at steamcommunity.com/dev/apikey.
  4. Run the app: python main.py
  5. Enter your Steam Account ID, your API key and the number of matches, then start the scan.

Reference

ItemValue
LanguagePython
GUIKivy, with layout in styling.kv
HTTP clientrequests
Steam endpointsIEconDOTA2_570/GetHeroes, IDOTA2Match_570/GetMatchHistory
OpenDota endpointsGET /api/matches/{id}, POST /api/request/{id}
Window size950 by 600 pixels

Known limits from the README:

  • The app scans at most 100 matches.
  • Old matches whose replays are no longer available cannot be parsed.

Notes from the author

This was an early project. It taught me to work with third-party game APIs and their constraints. The replay availability limit is a good example: it comes from an external system, so you document it instead of fixing it. The project also made me want to build small, focused tools that solve one problem well.

Outcome

  • The repository was created on 19 October 2020, and most of the code was written over the following two days.
  • The last commit is dated 8 June 2022.
  • The README lists open ideas: UI improvements, file or SQL storage, a hero selection screen and a PyInstaller guide.

Liked DOTA 2 Rampage Finder? Here's my background.

Full-stack TypeScript, shipped to real users.