Links

Download file

Tags: #owncloud #cloud #storage #operations #snippet
Author: Jeremy Ravenel
Description: This notebook allows users to download files from their OwnCloud account.

Input

Install packages

!pip install pyocclient

Import library

import naas
import owncloud

Model

Connect to your ownCloud

oc = owncloud.Client("https://cloud.damken.com")
oc.login("YOURNAME", "YOURPASS")

Output

Get file from your ownCloud

oc.get_file("testdir/download_to_owncloud.ipynb", "download_to_owncloud.ipynb")
Last modified 1mo ago