Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arunsathiya/download-google-doc
Go program to download a Google document in specific file types.
https://github.com/arunsathiya/download-google-doc
Last synced: 20 days ago
JSON representation
Go program to download a Google document in specific file types.
- Host: GitHub
- URL: https://github.com/arunsathiya/download-google-doc
- Owner: arunsathiya
- Created: 2023-10-05T01:46:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-10T07:09:52.000Z (almost 1 year ago)
- Last Synced: 2024-11-01T11:07:27.076Z (2 months ago)
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 💾 Download Google Doc
Go program to download a Google document in specific file types. At this time, the program fetches the list of documents in an authenticated Google Drive allows downloading the doc file in ".docx" and ".pdf" formats.
### How to run
(Work in progress)
At this time, the program runs with a custom Google Cloud Oauth2 client with Google Drive and Google Docs API enabled. If you are keen to set up right away:
- Create a [Google Cloud project](https://console.cloud.google.com/apis/dashboard) and enable Drive API and Docs API.
- [Create a Oauth2 client for your project](https://console.cloud.google.com/apis/credentials) and [add your email address as a test user](https://console.cloud.google.com/apis/credentials/consent).
- Clone repository.
- Download the `client_secret_xxx.json` file into the cloned folder, and rename it to `credentials.json`.
- Run `go run main.go`
- Authorize your Google Cloud app with your Google account. Copy redirect URL, extract just the token and paste on the terminal screen.
- `token.json` file should now be created on your folder, which will be used for all API queries. Don't delete this file.### Plans for the future
- Support downloading in specific formats.
- Support bulk downloading of documents.
- [Submit ideas here!](https://github.com/arunsathiya/download-google-doc/issues)