Reference a file located in Dropbox using Python
zenimot last edited by
I want to use Python to get a random line from a text file located in Dropbox.
So far I have not been very successful, as I am not able to even open a file.
My question: How do I open a file located in Dropbox using Python?
ccc last edited by
Do you have https://gist.github.com/4034526 working already?
dropboxloginis working, you can:
with client.get_file('/magnum-opus.txt') as in_file: the_data = in_file.read()