mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-22 05:31:19 +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
|
#!/bin/sh
|
||||||
|
|
||||||
mkdir $1
|
function get_contest() {
|
||||||
curl -Lk https://codeforces.com/contest/$1/problems -o $1/index.html
|
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