How to upload and replace files in Google Drive with Python and Drive API

preview_player
Показать описание
In this tutorial, we will learn how to use Python and Google Drive API to upload and replace existing files in Google drive.

▶ Also check out
-------------------------

▶ Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------
🔑Venmo: @Jie-Jenn

▶ Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

▶ Timestamp
00:00 - Intro
00:21 - Create the Python script
02:09 - Upload a file using Drive File Upload method
06:29 - Replace a file using Drive File Update method

#DriveAPI #Python #GoogleAPI
Рекомендации по теме
Комментарии
Автор

Thanks for putting this content online and for explaining every step; top quality content! 🎉

purDvotion
Автор

This is so helpful. I was struggling to update existing files in Google Drive. Your videos are so awesome keep it up!

markdowicz
Автор

Can you use multiple scopes like drive and sheets

Patronesofly
Автор

thanks for this great vid, but is there any opertunity to get the file name variable, so that I dont always have to change the name of the file I want to upload in the Java script?

boosterfnbr
Автор

Thanks for the solution! I was wondering the overwrite issue from your previous video
[Google Drive API in Python | Upload Files]

lkhhoe
Автор

Hi thank you for the tutorial! It is possible to move file between folders using drive API?

MatheusHenrique-gbis
Автор

How would I upload a file from a different path than my project. Could I specify the full path in the MediaFileUpload

TheLmfao
Автор

what if i just want to give the error if we try to upload the file with existing name?

srishtijain
Автор

Hi Jie...!
Excellent tutorial. I need to find some file and get de id_file. I only have the name of the file. Can I do this with Google drive API?

jmsolorzano
Автор

When trying to pip install googleapiclient, I get a message: ERROR: Could not find a version that satisfies the requirement googleapiclient.http (from versions: none)

jyrkinummela
Автор

I would like to upload a complete folder. It would be possible? I had some ideas on how to do it... But there might be something more practical to do.

zynex
Автор

"from Google import Create_Service" not working. Saying ModuleError: No Module named Google. please help

tusharshivan
Автор

when i get to the localhost part, the website just refuse to connect, what do i do ?

hoanghimself
Автор

client-secret.json file, how I create this, Please let us know the json structure, how we can get this??

adityanagpal
Автор

why i can't run this: from Google import Create_Service
i had run pip install google
help me :((

anphan
Автор

ModuleNotFoundError: No module named 'Google'

Patronesofly
Автор

is it possible to overwrite the file instead of replacement? by uploading the same file does not overwrite the file and does anyone know why is it like this?

Enzo-xwhj