Created
May 19, 2015 04:18
-
-
Save deanrather/099f5c6bbc8bdffa00fb to your computer and use it in GitHub Desktop.
Download VR Jam Finalists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
submissions="36283 | |
36166 | |
36764 | |
36258 | |
36346 | |
36556 | |
36355 | |
36358 | |
36270 | |
36225 | |
37000 | |
36498 | |
36429 | |
36781 | |
36549 | |
36281 | |
36754 | |
36936 | |
36138 | |
36214 | |
36735 | |
37036 | |
36279 | |
36336 | |
36342 | |
36280 | |
36978 | |
36146 | |
36267 | |
36836 | |
36137 | |
36286 | |
36904 | |
36733 | |
36164 | |
36388 | |
36801 | |
36142 | |
36789 | |
36773 | |
36332 | |
36780 | |
36394 | |
36175 | |
36259 | |
36255 | |
36359 | |
36153 | |
36339 | |
36306 | |
36748 | |
36149 | |
36293 | |
36980 | |
36861 | |
36821 | |
36411 | |
36960 | |
36819 | |
36910 | |
36264" | |
echo "$submissions" | while read submission | |
do | |
submission_url="http://vrjam.challengepost.com/submissions/$submission" | |
wget "$submission_url" -O /tmp/page.html | |
apk_url=$(grep "https://vrjam-submissions.s3.amazonaws.com/" /tmp/page.html | cut -d \" -f 8) | |
mkdir ~/vrjam-submissions | |
home=~ | |
basename=$(basename "$apk_url") | |
wget "$apk_url" -O "$home/vrjam-submissions/$basename" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment