Это видео недоступно.
Сожалеем об этом.

Upload to Google Drive w/Python - Free Easy Cloud Storage System, Deployable Code 2023

Поделиться
HTML-код
  • Опубликовано: 18 июн 2023
  • Remark: There are many tutorials on how to upload files but the issue most require pop-up authentication using GoogleAuth, problem is it may cause issues when deploying on cloud. Here we store the authentication details in a JSON for local side storage instead.
    Upload files to your Google Drive straight from Python. Create your own cloud storage management system completely free using Google Drive's API.
    Code:
    drive.google.com/file/d/148ky...
    OR
    shorturl.at/LcuED
    Links:
    developers.google.com/workspa...
    0:00 Service Account and Google Drive set-up
    2:58 Python Code
    6:24 Demonstration
    Drive (2011) reference

Комментарии • 55

  • @shanmugamudhaya7726
    @shanmugamudhaya7726  Год назад +1

    Do read description on why we use JSON file instead.

  • @TIMELAPSEGSR
    @TIMELAPSEGSR 6 месяцев назад +6

    I had already researched a lot and didn't find such a simple and efficient answer! It helped me a lot, thank you!!

  • @darideveloper
    @darideveloper 7 месяцев назад

    I love you bro, I was missing the share folder step, you video is really helpful!

  • @SahilNegi2004
    @SahilNegi2004 6 месяцев назад

    Thank you dude so much was working on this since 3 days now its working appreciate your work

  • @ProjectFinalAudio
    @ProjectFinalAudio 2 месяца назад

    The explanation was really clear and easy to follow. Thanks!

  • @theanonymous92
    @theanonymous92 Месяц назад

    Thank you for actually explaining why service account method rather than googleauth method -- the description it really made my mind clear of what to choose and when to choose ------ and yeah video was great too

  • @thatyoutubeguy2433
    @thatyoutubeguy2433 3 месяца назад

    Been trying to do this for 2 months, just did it in under 10 mins, top tier video

  • @user-tq7ci3wd2z
    @user-tq7ci3wd2z 10 месяцев назад

    Fantastic. I do looks for upload file to google drive sample everywhere, all of those are in different implementation. The sample here is the most simple I think.

  • @fahnub
    @fahnub Месяц назад

    super simple and to the point. thanks for this.

  • @Rulzan
    @Rulzan 3 месяца назад

    beautifully executed, thanks!

  • @hongkyulee9724
    @hongkyulee9724 4 месяца назад

    Super helpful tutorial. Really thank you !!!

  • @orphaeel
    @orphaeel 9 месяцев назад

    thanks a lot, man... It's so clear compared to the other... and I really need it for my speedtrap bachelor degree final project... welp, gotta finish it a.s.a.p.... really, thank you so much...

  • @pips92
    @pips92 9 месяцев назад

    thanks, really helpful. do you have any example of how to upload using OAuth 2.0 Client IDs for android app?

  • @andyd170
    @andyd170 5 месяцев назад

    Good work! Thank you

  • @pythonandjs6380
    @pythonandjs6380 11 месяцев назад

    Thank you very very much!!! 👍👍👍👍👍👍👍👍

  • @Gritaremos
    @Gritaremos 10 месяцев назад

    this was my thought as well, thank you for creating the tutorial! It is great!
    The problem is the following. If the owner (service account from the project we created) decides to cease to exist (i.e. deleted project), the file does not stay in the shared folder and gets deleted (since the owner was deleted).
    The only way to avoid this is by now having an extra couple of lines of code that change the permissions of the uploaded file to change the ownership.
    You would then need to go back to your main gmail account and every now and then manually accept the new ownership of the uploaded files.

    • @Gritaremos
      @Gritaremos 10 месяцев назад

      Edit to say it seems like it is not possible to transfer ownership through REST API...
      issuetracker.google.com/issues/228791253

  • @omarrandoms4157
    @omarrandoms4157 3 месяца назад

    You are a life saver, Thanks.

  • @yourXface1000
    @yourXface1000 5 месяцев назад

    this was really helpful, thanks for sharing!

  • @annasc8280
    @annasc8280 2 месяца назад

    Thanks for the video! Do you have a video with the download to Google Drive w/Python?

  • @yongweisu
    @yongweisu 3 месяца назад

    What if it is a google sheet type of file that u scrap from gmail attachment that u need to upload to drive, how would u do that?

  • @brokenfix
    @brokenfix 5 месяцев назад

    Thanks, it works, but I just notice that this method only accepts file types it recognizes: jpg, png, zip, etc. When I try to upload some other types it doesn't like, it throws an "UnknownFileType" error.

  • @upendrareddybade5118
    @upendrareddybade5118 17 дней назад

    I am having trouble accessing a specific folder in Google Drive using the Google Drive API. I am trying to access a folder named "Reports," which is under "Shared with Me," but I can only access the root folder. Additionally, I am unable to create any directories under the "Reports" folder. What could be the reason for this issue?

  • @SnippetBucketTechnologies
    @SnippetBucketTechnologies 6 месяцев назад

    In video it shows after upload file, it does not consume any storage of allocated account

  • @nguyetthu8118
    @nguyetthu8118 5 месяцев назад +1

    I want to ask about the service_account.json file

  • @subash682
    @subash682 5 месяцев назад

    Thanks a lot bro.

  • @souravmaharana7665
    @souravmaharana7665 3 месяца назад

    Though i have used my folder id in the code, I am seeing the file is getting uploaded to another folder id which i don't have access

  • @CDowgVA
    @CDowgVA 7 дней назад

    THS easy to understand video

  • @Jinay-mi1ri
    @Jinay-mi1ri 2 месяца назад

    amazing work man, thanks alot.

  • @ralphyoungs9015
    @ralphyoungs9015 Месяц назад

    I'm getting an - Object of type set is not JSON serializable - error , is there an update to this code?

  • @SnippetBucketTechnologies
    @SnippetBucketTechnologies 6 месяцев назад

    How can it possible, even upload 100 MB via service account, it does not consume any bytes, it keep shows 0 bytes used

  • @hashilmuhammed7680
    @hashilmuhammed7680 Месяц назад

    Uploading works fine but I need to update the existing file using a service account... How do I do it...Please help

  • @ci16
    @ci16 7 месяцев назад

    Great!

  • @JerryA189
    @JerryA189 5 месяцев назад

    I made some changes and now I can upload an entire folder. Next I'll be sorting the files by extension and upload they to their respective folders

  • @BCS_ArshAliKhan
    @BCS_ArshAliKhan 8 месяцев назад

    Thanks alot

  • @tunahanada6116
    @tunahanada6116 6 месяцев назад

    thx very sweet

  • @SnippetBucketTechnologies
    @SnippetBucketTechnologies 6 месяцев назад

    service account does not upload to original drive, it use serivce account quote, it does not transfer to drive, even upload it does not use your drive quote

  • @clemenshuber6689
    @clemenshuber6689 11 месяцев назад

    great video. it worked in 5 minutes

  • @joseignaciobernalizaguirre6038
    @joseignaciobernalizaguirre6038 8 месяцев назад

    Hi, how could you download files?

  • @taroon-7
    @taroon-7 5 месяцев назад

    100th Like by me , Thanks 👍👍

  • @mohammedkafil2975
    @mohammedkafil2975 9 месяцев назад

    if i run this offen i get 403 error

  • @user-kn9nt2ir5v
    @user-kn9nt2ir5v 10 месяцев назад

    can we get shareable link?

  • @tohmingjundynp
    @tohmingjundynp 4 месяца назад

    Thanks for saving my life

  • @archive1257
    @archive1257 17 дней назад

    It worked, but how do i run it like a server 24/7 without the use of vscode?

    • @shanmugamudhaya7726
      @shanmugamudhaya7726  16 дней назад

      Well you probably need to use controllers (Python Flask is a start) that can trigger upload method calls with whatever file.
      You can use Docker to create a image of your program and use Render to run the image.

  • @user-qq6ew4fn1r
    @user-qq6ew4fn1r 5 дней назад

    will you please share the code link
    link in the description is not accessable

    • @shanmugamudhaya7726
      @shanmugamudhaya7726  5 дней назад

      drive.google.com/file/d/148kyalwfR3kEZWxv8mLWTTsD_qseLapZ/view?usp=drive_link

  • @guilherme2.06
    @guilherme2.06 5 месяцев назад

    Me ajudou.

  • @AdelKatergi
    @AdelKatergi 11 месяцев назад

    I have been searching for so long but I am getting this error:
    ModuleNotFoundError: No module named 'google.outh2'
    And I cannot fix it. I ran the import you provided and I tried many other solutions online but nothing is working