https://github.com/rollecode/drive-to-obsidian
Sync Google Drive docs to Obsidian.
https://github.com/rollecode/drive-to-obsidian
Last synced: 27 days ago
JSON representation
Sync Google Drive docs to Obsidian.
- Host: GitHub
- URL: https://github.com/rollecode/drive-to-obsidian
- Owner: rollecode
- Created: 2024-12-17T18:30:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-18T18:31:19.000Z (over 1 year ago)
- Last Synced: 2026-05-02T13:33:29.686Z (28 days ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Drive docs to Obsidian
Sync Google Drive docs to Obsidian.
## Install and run
### macOS
1. Enable Google Drive API
- Go to [Google Cloud Console](https://console.cloud.google.com)
- Create a project and enable the Google Drive API
- Create OAuth 2.0 credentials for Desktop application
- Download the credentials and save as `client_secrets.json` in the project root directory
2. Set up Python environment
```bash
python3 -m venv venv
source venv/bin/activate
python3 -m pip install pydrive2 python-dotenv openai
```
3. Install Pandoc
```bash
brew install pandoc
```
4. Create `.env` file with your Obsidian vault path:
```bash
OBSIDIAN_VAULT_DIR="/path/to/your/obsidian/vault"
```
5. Run the script:
```bash
python3 sync-drive-to-obsidian.py
```
### Linux
1. Follow step 1 from macOS instructions to set up Google Drive API
2. Install dependencies:
```bash
pip install pydrive2 python-dotenv openai
sudo apt install pandoc
```
3. Follow steps 4-5 from macOS instructions