Initial version.
This commit is contained in:
17
README.md
17
README.md
@ -1,3 +1,18 @@
|
||||
# procare-rip-photos
|
||||
|
||||
Script to rip photos from Procare.
|
||||
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`.
|
||||
|
6
rip-photos.sh
Executable file
6
rip-photos.sh
Executable file
@ -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
|
Reference in New Issue
Block a user