Download file
Tags: #owncloud #cloud #storage
Author: Jeremy Ravenel

Input

Install packages

1
!pip install pyocclient
Copied!

Import library

1
import naas
2
import owncloud
Copied!

Model

Connect to your ownCloud

1
oc = owncloud.Client('https://cloud.damken.com')
2
3
oc.login('YOURNAME', 'YOURPASS')
Copied!

Output

Get file from your ownCloud

1
oc.get_file('testdir/download_to_owncloud.ipynb', 'download_to_owncloud.ipynb')
Copied!
Last modified 2mo ago
Copy link
Edit on GitHub