diff --git a/README.md b/README.md index 6563440..ca51a47 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ # procare-rip-photos -Script to rip photos from Procare. \ No newline at end of file +Script to rip photos from Procare. + +To rip photos: + +1. Login to Procare using your parent account. +2. Navigate to your "Dashboard". +3. Click on "Photos/Videos". +4. Select the time period you want to rip. +5. Save the webpage to `~/Downloads/Procare.html`. (Save entire webpage.) +6. Open a Unix shell (BASH, TCSH, etc.) +7. Navigate to where you want to save the photos (e.g.: `cd ~/Photos/`) +8. Run the script (`~/procare-rip-photos/rip-photos.sh`) +9. Enjoy + +### Notes +The script will create or overwrite the script `~/Downloads/get-it`. diff --git a/rip-photos.sh b/rip-photos.sh new file mode 100755 index 0000000..3bdb8ac --- /dev/null +++ b/rip-photos.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +grep 'download=' ~/Downloads/Procare.html | sed -e 's/target="_blank>.*$//' -e 's/.*download="//' -e 's/ href=".*$//' -e 's/\&\;/\&/g' -e 's;\(.*main/\)\(.*\.jpg\)\(.*$\);wget -c "\1\2\3 -O \2;' | sort | uniq > ~/Downloads/get-it + +chmod +x ~/Downloads/get-it +~/Downloads/get-it