Код: Выделить всё
def download_file_byURL(site_url, file_path, user_credential):
file_object = io.BytesIO()
ctx = ClientContext(site_url).with_credentials(user_credential)
file = ctx.web.get_file_by_server_relative_url(file_path)
file.download(file_object).execute_query()
file_object .seek(0)
return file_object
pdf_file = download_file_byURL(site_url, file_path, user_credential)
camelot_tables = camelot.read_pdf(pdf_file, pages='all', flavor='lattice')
Подробнее здесь: https://stackoverflow.com/questions/793 ... bute-lower
Мобильная версия