Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download files from Google Drive #63

Open
lsvv1217 opened this issue Nov 30, 2022 · 0 comments
Open

How to download files from Google Drive #63

lsvv1217 opened this issue Nov 30, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@lsvv1217
Copy link
Contributor

lsvv1217 commented Nov 30, 2022

vs code에서 Google Drive file을 download 하는 법

  1. gdown 설치
pip install gdown
  1. gdown 모듈 import
import gdown
  1. 파일 링크 추출
    구글 드라이브 폴더에서 파일 더블 클릭 후 새 창에서 열기 클릭
    image

링크에서 d와 view 사이 추출

image

  1. 추출한 것을 아래 file_id에 입력 후 실행
google_path = 'https://drive.google.com/uc?id='
file_id = 'your_url'
output_name = 'input_your_file_name'
gdown.download(google_path + file_id, output_name, quiet = False)
@lsvv1217 lsvv1217 added the documentation Improvements or additions to documentation label Nov 30, 2022
@lsvv1217 lsvv1217 changed the title How to download files on Google Drive How to download files from Google Drive Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant