Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@icebreaker:/storage/trle $ cat get.sh
- #!/bin/bash
- get_game(){
- lid="$1"
- base_url='https://www.trle.net/sc/levelfeatures.php?lid='
- curl -s -k "$base_url$lid" | grep 'TR[12345]</td>' | grep -o 'TR[12345]'
- }
- first_id=1
- last_id=3428
- for i in $(seq $first_id $last_id); do
- out_dir=$(get_game $i)
- wget --continue --content-disposition --no-check-certificate -P $out_dir "https://www.trle.net/scadm/trle_dl.php?lid=$i"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement