excel - Using Python to download files from Box -
i'm trying use python download excel file local drive box.
using boxsdk able authenticate via oauth2 , file id on box.
however when use client.file(file_id).content()
function, returns string, , if use client.file(file_id).get()
gives me boxsdk.object.file.file
.
does know how write either of these excel file on local machine? or better method of using python download excel file box.
(i discovered boxsdk.object.file.file
has option download_to(writeable_stream
here have no idea how use create excel file , searches haven't been helpful).
you use python csv library, along dialect='excel' flag. works nice exporting data microsoft excel. main idea use csv.writer inside loop writing each line. try , if can't, post code here.
Comments
Post a Comment