![]() The following code will do authentication and list all files in your Google Drive. Once we have the JSON file to access Google Drive, we can install a Python library - PyDrive using pip install pydrive. The downloaded JSON file is the one we need for our Python code to access to Google Drive. Then click “CREATE” and download the JSON file as shown by the following snapshots. In above snapshot, we need to click “client ID” as that’s the Python program needs. ![]() You’ll get to the next step as following.ģ) Create credentials by clicking the “CREATE CREDENTIALS” icon (indicated by red circle in above snapshot). Then click “ENABLE”, which will enable your Google Drive API service. You’ll get the following snapshot.Ĭlick the “Google Drive API” icon and it will bring you to next step as following. Search “Google Drive” in the API library (indicated by red circle in about picture). That will bring you the the API library as below. You can give your project a name or leave it as default.Ģ) Enable APIs and Services by clicking the “ENABLE APIS AND SERVICES” as indicated by the red circle in following picture. To do that, we need to:ġ) Create a new project in Google Developer Console by clicking “CREATE PROJECT” as following. Get Authentication for Google Service APIįirst, we need to get the authentication files for Google Service API, so our Python code can access to the Google Drive. ![]() One simple question to start with is how we access and manage Google Drive files using Python (the most popular data science programming language). Have you wondered how to fully utilize this free cloud storage services from a data science perspective? Actually, it’s not that difficult. For some edu users, the storage is not only free but also unlimited. Google Drive is awesome! Not only because it provides a easy way of uploading, managing and sharing files, but also because it’s free within certain storage limit. This is a tutorial of how to use Python to manage Google Drive files. Get Authentication for Google Service API
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |