2024-12-26 11:01:12 -06:00
2024-12-11 23:40:25 -06:00
2024-12-13 16:20:07 -06:00
2024-12-21 10:14:06 -06:00
2024-12-14 13:22:01 -06:00
2024-12-26 11:01:12 -06:00

CMG Commands

A collection of python scripts for Carpenter Media Group

  • A script that generates a direct downloadable link from Google Drive. Works around the issue of the "no virus scan" notification.
  • A simple python script to split a Zip file into smaller chunks.

Script will ask for the size, in Gigabytes, of the new files. And it will ask for the filename of the input file (can be in the same directory or you can enter a path to the file).

Installation

Python3:

If you do not have python3 installed, I recommend downloading it with Homebrew. There is an install command on their website. After Homebrew has been installed, install python like this:

brew install python3

Scripts:

Download cmg-commands directory either by checking it out with git or downloading using the download link (under the 'three dots' above.)

Then, cd into the directory and run the following command:

python3 install_scripts.py

If updating scripts (and have already added ~/bin/ to the system PATH) run with the --upgrade parameter:

python3 install_scripts.py --upgrade

Usage

zip splitter:

cmg-split-zip-smaller-chunks.py
Enter the maximum (in GB) zipped file size (2 is default): 1.6
Enter the path to the zipped file: enewscourier.com_archive_2016.zip
cmg-get-drive-link.py
Enter the Google Drive Share URL: https://drive.google.com/file/d/1Cn6VxAdzhO5v1Km3iJhT8m-ZMcFIzbup/view?usp=drive_link
https://drive.usercontent.google.com/download?export=download&authuser=0&id=1Cn6VxAdzhO5v1Km3iJhT8m-ZMcFIzbup&confirm=t&uuid=8fe6734c-2491-4897-bd0a-46165e953d09

License

MIT

Description
a collection of python scripts.
Readme 69 KiB
Languages
Python 100%