This project demonstrates how to interact with Google Drive using the Google Drive API in Python. You can upload files, create folders, and perform other operations on Google Drive.
Before running this project, ensure you have the following:
-
Google Account: You must have a Google Account to access Google Drive and enable the Drive API.
-
Python Installed: Python should be installed on your system. You can download Python from the official Python website.
To run this project, you'll need to install a few Python packages. You can install them using pip
:
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
-
Google Cloud Project:
• Create a project in the Google Cloud Console.
• Enable the Google Drive API for your project.
• Create OAuth 2.0 credentials or a service account key.
• Download the credentials JSON file.
-
Configure Your Python Script:
• Place the credentials JSON file in your project directory.
• Update the Python script to use your credentials.
-
Run the Script:
• Run your Python script to interact with Google Drive (upload files, create folders, etc.).