{"id":29016310,"url":"https://github.com/karrlab/gdoc_down","last_synced_at":"2025-08-27T22:21:00.915Z","repository":{"id":57433318,"uuid":"48853952","full_name":"KarrLab/gdoc_down","owner":"KarrLab","description":"Command line programs to save Google documents to text and LaTeX files","archived":false,"fork":false,"pushed_at":"2020-10-02T13:31:49.000Z","size":108,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-21T22:53:18.902Z","etag":null,"topics":["command-line","google-docs","google-drive","google-drive-api","latex"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KarrLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-31T15:35:42.000Z","updated_at":"2022-04-22T17:44:26.000Z","dependencies_parsed_at":"2022-08-28T04:23:50.472Z","dependency_job_id":null,"html_url":"https://github.com/KarrLab/gdoc_down","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/KarrLab/gdoc_down","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarrLab%2Fgdoc_down","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarrLab%2Fgdoc_down/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarrLab%2Fgdoc_down/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarrLab%2Fgdoc_down/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarrLab","download_url":"https://codeload.github.com/KarrLab/gdoc_down/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarrLab%2Fgdoc_down/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261960457,"owners_count":23236575,"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":["command-line","google-docs","google-drive","google-drive-api","latex"],"created_at":"2025-06-25T22:07:56.350Z","updated_at":"2025-06-25T22:07:57.563Z","avatar_url":"https://github.com/KarrLab.png","language":"Python","readme":"[![PyPI package](https://img.shields.io/pypi/v/gdoc_down.svg)](https://pypi.python.org/pypi/gdoc_down)\n[![Documentation](https://readthedocs.org/projects/gdoc-down/badge/?version=latest)](http://docs.karrlab.org/gdoc_down)\n[![Test results](https://circleci.com/gh/KarrLab/gdoc_down.svg?style=shield)](https://circleci.com/gh/KarrLab/gdoc_down)\n[![Test coverage](https://coveralls.io/repos/github/KarrLab/gdoc_down/badge.svg)](https://coveralls.io/github/KarrLab/gdoc_down)\n[![Code analysis](https://api.codeclimate.com/v1/badges/3c7f002e731de98c31d0/maintainability)](https://codeclimate.com/github/KarrLab/gdoc_down)\n[![License](https://img.shields.io/github/license/KarrLab/gdoc_down.svg)](LICENSE)\n![Analytics](https://ga-beacon.appspot.com/UA-86759801-1/gdoc_down/README.md?pixel)\n\n# `gdoc-down`\nAPI and command line program to save Google documents, presentations, and worksheets in a local Google Drive / Backup \u0026 Sync\ndirectory to local files.\n\n`gdoc-down` supports several formats:\n\n* CSV (.csv)\n* EPUB (.epub)\n* Excel workbook (.xlsx)\n* HTML (.html)\n* Image (.png, .jpg, .svg)\n* LaTeX (.tex)\n* Open Office document (.odt)\n* Open Office presentation (.odp)\n* Open Office workbook (.ods)\n* Plain text file (.txt)    \n* Portable document format (.pdf)\n* Powerpoint presentation (.pptx)\n* Rich text document (.rtf)\n* TSV (.tsv)\n* Word document (.docx)\n\n`gdoc-down` also has special features for handling .gdoc files that contain LaTeX:\n\n* `gdoc-down` ignores all images. This allows the user to place images inside the Google \n  document for convenience and to use `\\includegraphics` to embed images in compile PDF files.\n* `gdoc-down` will convert all Google document comments to PDF comments.\n* `gdoc-down` ignores all page breaks.\n\nThe first time `gdoc-down` is called, `gdoc-down` will request access to the user's Google\naccount. This will create a client.json file in the users home directory (~/.gdoc_down/client.json).\n\n## Installation\n\n* Latest release from PyPI\n  ```\n  pip install gdoc_down\n  ```\n\n* Latest revision from GitHub\n  ```\n  pip install git+https://github.com/KarrLab/gdoc_down.git#egg=gdoc_down\n  ```\n\n## Command line usage\n```\nusage: gdoc-down (sub-commands ...) [options ...] {arguments ...}\n\nDownload a Google document, presentation, or workbook to a local file\n\npositional arguments:\n  google_file           path to Google document, presentation, or workbook\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --debug               toggle debug output\n  --quiet               suppress all output\n  --format FORMAT, -f FORMAT\n                        output format (csv, docx, epub, html, jpg, odft, odp,\n                        ods, pdf, pptx, png, rtf, svg, tsv, tex, txt, xlsx)\n  --out_path OUT_PATH, -o OUT_PATH\n                        path where Google document, presentation, or workbook\n                        should be downloaded\n  --extension EXTENSION, -e EXTENSION\n                        output extension\n```\n\n## Examples\n```\ngdoc-down -f docx /path/to/Google \\Drive/file.gdoc\ngdoc-down -f pptx /path/to/Google \\Drive/file.gslides\ngdoc-down -f xlsx /path/to/Google \\Drive/file.gsheet\n```\n\n## Documentation\nPlease see the documentation at [Read the Docs](http://docs.karrlab.org/gdoc_down).\n\n## Tests\n`pytest` can be used to run the tests:\n```\npytest tests\n```\n\nPlease note that several additional packages are required for testing (see [tests/requirements.txt](tests/requirements.txt)).\n\n## License\nThe example model is released under the [MIT license](LICENSE).\n\n## Development team\n`gdoc-down` was developed by [Jonathan Karr](http://www.karrlab.org) at the Icahn School of Medicine at Mount Sinai in New York, USA.\n\n## Questions and comments\nPlease contact the [Jonathan Karr](http://www.karrlab.org) with any questions or comments.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarrlab%2Fgdoc_down","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarrlab%2Fgdoc_down","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarrlab%2Fgdoc_down/lists"}