mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-21 13:41:22 +01:00
chore: support downloading multiple contests
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
67318c5756
commit
21a5ae826a
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir $1
|
||||
curl -Lk https://codeforces.com/contest/$1/problems -o $1/index.html
|
||||
function get_contest() {
|
||||
mkdir $1
|
||||
curl -Lk https://codeforces.com/contest/$1/problems -o $1/index.html
|
||||
}
|
||||
|
||||
for contest in "$@"
|
||||
do
|
||||
get_contest $contest;
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue