{"id":25331019,"url":"https://github.com/kunkunlin1221/UpDownGDrive","last_synced_at":"2025-10-29T05:32:17.534Z","repository":{"id":276145939,"uuid":"921489497","full_name":"kunkunlin1221/gdrive_up_and_down","owner":"kunkunlin1221","description":"Google drive upload and download tools","archived":false,"fork":false,"pushed_at":"2025-02-06T14:18:20.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T15:30:04.088Z","etag":null,"topics":["google-drive-api-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kunkunlin1221.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T03:26:16.000Z","updated_at":"2025-02-06T14:18:24.000Z","dependencies_parsed_at":"2025-02-06T15:40:48.433Z","dependency_job_id":null,"html_url":"https://github.com/kunkunlin1221/gdrive_up_and_down","commit_stats":null,"previous_names":["kunkunlin1221/gdrive_up_and_down"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunkunlin1221%2Fgdrive_up_and_down","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunkunlin1221%2Fgdrive_up_and_down/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunkunlin1221%2Fgdrive_up_and_down/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunkunlin1221%2Fgdrive_up_and_down/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kunkunlin1221","download_url":"https://codeload.github.com/kunkunlin1221/gdrive_up_and_down/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238777978,"owners_count":19528818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-drive-api-python"],"created_at":"2025-02-14T03:57:18.895Z","updated_at":"2025-10-29T05:32:17.530Z","avatar_url":"https://github.com/kunkunlin1221.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UpDownGDrive\n\nThis repository provides a tool for uploading and downloading files to and from Google Drive. It uses personal credentials to access both individual and shared drives, allowing seamless transfer of folders and files.\n\n## Installation\n\n```bash\npip install -r requirements.txt\n```\n\n## **Prepare credentials**\n\n1. Go to [Google Cloud Console](https://console.cloud.google.com/)\n2. Create a new project\n3. Go to the project\n4. Go to the `APIs \u0026 Services` -\u003e enable `Google Drive API`\n5. Go to the `Credentials` -\u003e create credentials -\u003e `Build on oAuth2.0` -\u003e `Desktop app`\n6. Download the credentials json and put it in the root of the project as `credentials.json`\n\n## Usage\n\n### Upload a file\n\n```bash\nfile_path=\"path/to/file\"\nfolder_id=\"folder_id\"\ncredentials_file=\"path/to/credentials.json\"\nipython -- src/upload.py \\\n    --file_path $file_path \\\n    --folder_id $folder_id \\\n    --credentials_file $credentials_file\n```\n\n### Upload a folder\n\n```bash\nfolder=\"path/to/folder\"\nmother_folder_id=\"mother_folder_id\"\n# if you want to upload inside a existing folder, you need to give mother folder id\ncredentials_file=\"path/to/credentials.json\"\nipython -- src/upload_folder.py \\\n    --folder $folder \\\n    --mother_folder_id $mother_folder_id \\\n    --credentials_file $credentials_file\n```\n\n### Download a file\n\n```bash\nfile_id=\"file_id\"\ndst_path=\"path/to/save\"\ncredentials_file=\"path/to/credentials.json\"\nipython -- src/download.py \\\n    --file_id $file_id \\\n    --dst_path $dst_path \\\n    --credentials_file $credentials_file\n```\n\n### Download a folder\n\n```bash\nfolder_id=\"folder_id\"\ndst_folder=\"path/to/save\"\ncredentials_file=\"path/to/credentials.json\"\nscan_size=1000\nipython -- src/download_folder.py \\\n    --folder_id $folder_id \\\n    --dst_folder $dst_folder \\\n    --credentials_file $credentials_file \\\n    --scan_size $scan_size\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkunkunlin1221%2FUpDownGDrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkunkunlin1221%2FUpDownGDrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkunkunlin1221%2FUpDownGDrive/lists"}