From d9833b56e7519b74936058d6836c0ba2f903f841 Mon Sep 17 00:00:00 2001 From: Haneul Choi Date: Tue, 24 Oct 2023 06:25:40 +0000 Subject: [PATCH] Add script for downloading replays --- .gitignore | 2 +- download_replay.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 download_replay.sh diff --git a/.gitignore b/.gitignore index b4c584d..6894c3d 100644 --- a/.gitignore +++ b/.gitignore @@ -165,4 +165,4 @@ cython_debug/ .vscode/ # Data -replays/ \ No newline at end of file +data/ \ No newline at end of file diff --git a/download_replay.sh b/download_replay.sh new file mode 100755 index 0000000..263e3db --- /dev/null +++ b/download_replay.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +#Please write ids of replay to download +ids=(52965522 51283939) + +mkdir -p data && cd data + +for id in ${ids[@]} +do + curl -O https://www.kaggleusercontent.com/episodes/${id}.json +done