Download all freestyles from a spreadsheet, renaming them and saving them to a good folder structure
Prerequisites:
- GNU make (if you want to use the makefile commands, you can also run the makefile commands without make)
- Python 3.7.7 (or higher)
- An active credentials JSON (you'll need to get this from patrick or create it yourself)
- Clone this
- Use command
make installto download the requirements - Use command
make runto execute the program - Use command
make cleanto remove the 'Open' folder if you do not need the files anymore (perhaps after you zip the folder)
When you get the credentials file from Patrick, you may want to add a new spreadhseet to be parsed. The steps for doing this are pretty straightforward
- Go to the spreadsheet you want to add in Google Drive
- Find the 'client_email' key in the credentials JSON and copy that email.
- Share the Google Drive Spreadsheet with this email.
- Update Line 75 in the
spreadsheet_parser.pyprogram with the name of the sheet you are wanting to download make run
The parser has several features that aid in troubleshooting when not all videos can be downloaded.
- There is useful debug output as the script downloads videos.
- You have the option to view statistics regarding the number of freestyles of each type. To view this, make sure that the variable
DEBUGis set toTrueon line 17. - You can also view the JSON structure of freestyles. You will need to make the
SHOW_FREESTYLESvariableTrueto see these. - There are log files included in the folders with the downloaded videos. These files allow you to quickly see the videos with download issues. Refer to these files to see the issues.