Download Files and Folders from Google Drive with Python Scripts
HTML-код
- Опубликовано: 27 дек 2022
- In this video you will learn how to use gdown to download files and folders from Google Drive using Python scripts. This is very easy and only takes a couple lines of code. Also its very handy because over a billion people use Google Drive and accessing it is a common use case
SCRIPTS FOLDER:
github.com/Sanjin84/pylinux/t...
SPECIFIC FILES:
github.com/Sanjin84/pylinux/b...
github.com/Sanjin84/pylinux/b...
github.com/Sanjin84/pylinux/b...
🌟🔗 𝗦𝗘𝗖𝗢𝗡𝗗 𝗖𝗛𝗔𝗡𝗡𝗘𝗟 (Coding with GPT) 🔗🌟
👉 / @codingwithgpt
📱 𝗦𝗢𝗖𝗜𝗔𝗟 🌐
🐦 Twitter: / sanjindedic
🔧 Github: github.com/Sanjin84
🔗 LinkedIn: / sanjin-dedic
💻 𝗖𝗢𝗗𝗘 𝗥𝗘𝗣𝗢𝗦 🎯
1️⃣ WebQuiz (Front End): github.com/Sanjin84/WebQuiz
2️⃣ WebQuizAPI (Back End): github.com/Sanjin84/WebQuizAPI
3️⃣ findmyfile (Python Package): github.com/Sanjin84/findmyfile
🌍 𝗪𝗘𝗕𝗦𝗜𝗧𝗘𝗦 🖥️
1️⃣ GoPrompt: goprompt.io
2️⃣ AITrivia: sanjin84.github.io/AITrivia/
Sanjin Dedic is a highly qualified and experienced robotics engineer and educator, with over a decade of teaching experience in the field of digital technologies. He has co-authored a book on the micro:bit titled "From Go to Whoa with Physical Tech," and has developed numerous teacher professional development programs in Python, including an Australian Teacher Guide to Object Oriented Programming that received a Google grant in 2021. In addition to his extensive experience in the field of education and technology, Dedic has also recently expanded his expertise by completing professional cybersecurity qualifications and organizing a statewide Capture the Flag event for the Victorian Coding Challenge during the COVID lockdowns. Наука
thanks a lot, it's really help me
Thank you so much ☺
Best tuto dude!
cool tutorial dude, just one thing, at 12:04, line 6, the url.split('/')[-1] will consider the entire id and ?usp=sharing, that is because there is no '/' in between id and ?usp=sharing, so the if condition will never satisfy, correct right?
I think you are right but there has to be a / in between so the code should always work. If you can make it fail please let me know and I will update the repo
I have two errors:
1
url = sys.argv[1]
~~~~~~~~^^^
IndexError: list index out of range
2
when i specify the file_id directly, the link that I receive leads to Internal Server Error
Have anything changed on google since then or do you have any suggestions what am I doing wrong?
thanks a lot!!!!
really helpful bro!!!!!
Glad it helped!
Is it possible to download a non-share gdrive link using python??
Good question, I haven't tried! Give it a go using my code and let me know
The "coming up" is a bit of a wasteof time, that's a format better used by entertainment youtubers.