https://github.com/virtru/cse-bulk-upload-script
CSE Bulk Upload Script
https://github.com/virtru/cse-bulk-upload-script
Last synced: about 1 year ago
JSON representation
CSE Bulk Upload Script
- Host: GitHub
- URL: https://github.com/virtru/cse-bulk-upload-script
- Owner: virtru
- Created: 2023-09-27T15:24:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T15:15:14.000Z (over 2 years ago)
- Last Synced: 2025-01-29T08:43:34.640Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Python Setup
# Sample steps to Bulk Upload a Directory to Google Drive using CSE
1. Create a Parent Folder in Google Drive and get its Folder ID from the URL.
2. Get the Drive ID, Parent ID, Service Account Credentials File and Client Secret from GCP.
3. Run the following commands:
```
python3 -m venv new-env
source new-env/bin/activate
pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
pip3 install tink
```
3. Feed the parameters for the command as follows:
```
python3 cse_bulk_upload.py
-scanPath="path_to_folder_to_scan"
-driveId="drive_id"
-parentId="parent_id"
-googleCredentials="path_to_credentials_json_file"
-clientSecret="path_to_client_secret_file"
-delegatedUser="delegated_user"
```
4. When prompted to authorize, navigate to the link and login to Google using the delegated user
5. When complete, check Drive to see if relevant files have been mapped.