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:
- Request the player's recent match IDs from the Steam Web API (
GetMatchHistory). - For each match, request details from the OpenDota API (
/api/matches/{id}). - If OpenDota has not parsed the replay (the
versionfield is empty), post a parse request. Poll every 10 seconds, and give up after about a minute. - Read the player's
multi_killsmap. A5key means at least one rampage. - 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
- Install Python and Kivy:
pip install kivy requests - Clone the repository:
git clone https://github.com/WhyAsh5114/Dota2-Rampage-Finder.git - Get a Steam Web API key at steamcommunity.com/dev/apikey.
- Run the app:
python main.py - Enter your Steam Account ID, your API key and the number of matches, then start the scan.
Reference
| Item | Value |
|---|---|
| Language | Python |
| GUI | Kivy, with layout in styling.kv |
| HTTP client | requests |
| Steam endpoints | IEconDOTA2_570/GetHeroes, IDOTA2Match_570/GetMatchHistory |
| OpenDota endpoints | GET /api/matches/{id}, POST /api/request/{id} |
| Window size | 950 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.