chore: support downloading multiple contests

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-07-10 11:59:21 +02:00
parent 67318c5756
commit 21a5ae826a
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -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