![]() ![]() ![]() Follow the above step keenly and you should see the following results: ![]() After that, you will be directed to a page where you can enable it. You should get a page where you can search for APIs to enable. Log in with your preferred account and you should have this page below:Įnable the Google Drive API by clicking on Enabled APIS AND SERVICES on the top bar circled above. We are now done with the requirements, let's get our credentials from this link ( Google cloud). Install them using pip install oogle-api-python-client google-auth-httplib2 google-auth-oauthlib. You will then install google-api-python-client, google-auth-httplib2, google-auth-oauthlib. your_virtual_environment/bin/activate # activate the created virtual environment Python versions >= version 3.8 should work all the same for this article.Ĭreate a new directory and change it using mkdir your_directory cd your_directoryįor this article, we will need to create and activate a new virtual environment: python3.10 -m venv your_virtual_environment # Create a virtual environment named. Note: I use python3.10.6 and an Ubuntu OS for this project. Some knowledge of python scripting and simple Object Oriented Programming in python.Prerequisitesīefore you begin this article you will need the following: After you have created the script, you can integrate it with your web applications and APIs to download files from and upload files to Google drive. In this article, you will create a python script to download files from and upload files to Google drive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |