Skip to content

rollecode/drive-to-obsidian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    • 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

python3 -m venv venv
source venv/bin/activate
python3 -m pip install pydrive2 python-dotenv openai
  1. Install Pandoc
brew install pandoc
  1. Create .env file with your Obsidian vault path:
OBSIDIAN_VAULT_DIR="/path/to/your/obsidian/vault"
  1. Run the script:
python3 sync-drive-to-obsidian.py

Linux

  1. Follow step 1 from macOS instructions to set up Google Drive API

  2. Install dependencies:

pip install pydrive2 python-dotenv openai
sudo apt install pandoc
  1. Follow steps 4-5 from macOS instructions

About

Sync Google Drive docs to Obsidian.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages