{"id":40699776,"url":"https://github.com/n-loo/oc-curlgoogle","last_synced_at":"2026-01-21T12:02:51.934Z","repository":{"id":182374356,"uuid":"363264751","full_name":"n-loo/OC-curlgoogle","owner":"n-loo","description":"Copies files using curl to an Oberlin College google drive account","archived":false,"fork":false,"pushed_at":"2021-09-16T22:40:53.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-19T18:49:58.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/n-loo.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}},"created_at":"2021-04-30T21:38:27.000Z","updated_at":"2023-07-19T18:50:07.540Z","dependencies_parsed_at":"2023-07-20T01:01:45.438Z","dependency_job_id":null,"html_url":"https://github.com/n-loo/OC-curlgoogle","commit_stats":null,"previous_names":["n-loo/oc-curlgoogle"],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/n-loo/OC-curlgoogle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-loo%2FOC-curlgoogle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-loo%2FOC-curlgoogle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-loo%2FOC-curlgoogle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-loo%2FOC-curlgoogle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n-loo","download_url":"https://codeload.github.com/n-loo/OC-curlgoogle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-loo%2FOC-curlgoogle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-21T12:02:46.771Z","updated_at":"2026-01-21T12:02:51.920Z","avatar_url":"https://github.com/n-loo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OC curlgoogle\n\nThis script copies files using curl to an Oberlin College google drive account using the internal GCP application 'OC curlgoogle.' \n\nThis is an informal 'fork' of the script [presented by Daniel Ellis](https://towardsdatascience.com/uploading-files-to-google-drive-directly-from-the-terminal-using-curl-2b89db28bb06) \n\n## Installation\n\n### Prerequisites\n\n- Python 2.7\n- [Curl](https://curl.se/)\n\nI recommend installing this to your home directory (~) so it may be used anywhere.\n\n### Steps:\n\nCopy over the script:\n```\nwget https://raw.githubusercontent.com/n-loo/OC-curlgoogle/main/curlgoogle\n```\n\nMake the script executable\n\n```\nchmod a+x curlgoogle\n```\nDone!\n\n## Usage\n\nTo copy over a file with `curlgoogle` run the script as\n\n```\n~/curlgoogle file.txt\n```\n\nYou may also recursively copy over an entire folder (with parent path) and its contents by running\n\n```\n~/curlgoogle ./folder/*\n```\nWhen running the script copy the code displayed and follow the link to your web browser. Input the code into the web browser and select your Oberlin account. Then click enter twice in the terminal and it should show up as the zip file `curldata` in your Google Drive shortly! \n\nIf you wish to unzip the contents in Google Drive I recommend the Zip Extractor extension in Drive.\n\n## `curlgoogle2`\n\nThe original curlgoogle script isn’t very great at uploading giant folders due to an issue with zipping the giant folders. `curlgoogle2` is a workaround using a different variation of the curlgoogle script called curlgoogle2. \n\n### Installation\n\nThe installation process is the same as with the original script but just with replacing `curlgoogle` with `curlgoogle2`.\n\n### Usage\n\nSince this is intended for dealing with large folders, first we zip the folder in the command line as:\n\n```\nzip -r -0 curldata.zip ~/folder/to/upload/\n```\n\nIt is recommended to keep the `curldata.zip` as the name for the zip file. If you change it to something else you must edit the `name` variable in the script first.\n\nNow we upload the folder using the command:\n\n```\n~/curlgoogle2 curldata.zip\n```\n\nNow you need to sign into google drive using the steps decribed for the original `curlgoogle` and the file will upload eventually.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-loo%2Foc-curlgoogle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn-loo%2Foc-curlgoogle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-loo%2Foc-curlgoogle/lists"}