This python script allows you to easily navigate into Sharepoint using UNIX like commands.
It gives access to the following commands:
cd: Go to a specific Sharepoint site or OneDrivels: Display thee content of a site, OneDrive or directorysearch_all: Search in all Sharepoint and OneDrive filessearch: Search in the current site or OneDriveget: Download a specific file
In the code set you tenant_id, client_id and client_secret
Set your sharepoint and oneedrive URL. Usually the sharepoint is https://company.sharepoint.com and the OneDrive is https://company-my.sharepoint.com
Run the script and enjoy