'read Gdrive path in tabula-py
I'm using tabula-py to read tables from PDF, but instead of downloading the file from Gdrive to my working directory, I would like to directly use the Gdrive file path.
tables = tabula.io.read_pdf("https://drive.google.com/drive/folders/12gg07e6NzSXu8KoZ2XqpSOgTosV", pages="all")
But I get the following error:
Command '['java', '-Dfile.encoding=UTF8', '-jar', '/opt/conda/lib/python3.7/site-packages/tabula/tabula-1.0.5-jar-with-dependencies.jar', '--pages', 'all', '--guess', '--format', 'JSON', '/tmp/1a0aad07-88cc-4060-9df4-a52f780a97fb.pdf']' returned non-zero exit status 1.
Is there any way to read the file directly from Gdrive (using the Gdrive API in python would give me the text content of the PDF file which would not help)?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
