-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration and Data
DiscantX edited this page Feb 7, 2026
·
2 revisions
This page merges configuration details and data storage.
Edit defaults in aoe2api.py:
-
destination_folderwhere replay ZIPs are saved (default:replays). -
gamegame key (default:age2). -
profile_iddefault profile ID used in sample calls. -
match_iddefault match ID used in sample calls. -
match_typedefault match type for player stats and match list calls (default:3). -
unzipwhether to unzip downloaded replay ZIPs (default:False). -
remove_zipwhether to delete the ZIP after extraction (default:False). -
headersdefault headers for API requests.
Edit defaults in replay_scraper.py:
-
request_intervaldelay between requests in seconds. -
back_off_delaybase backoff delay when rate limited (seconds). -
back_off_multiplierexponential backoff multiplier. -
max_back_off_delaymaximum backoff delay (seconds). -
start_idstarting match ID. -
end_idending match ID. -
endpoint_nameendpoint name to scrape. -
unzip_replayswhether to unzip downloaded replays. -
remove_zipwhether to delete ZIPs after extraction. -
scrape_state_filescraper resume state file path. -
resumewhether to resume from the last state file. -
count_backwardsscrape fromstart_iddown toend_idwhenTrue.
-
replays/default output for replay ZIPs and extracted files. -
scrape_state.txtdefault resume state file. -
assets/project images.
- Replay ZIPs are named
{match_id}.zip. - If
unzipis enabled, extracted files are placed in the same destination folder.