Skip to content

Commit

Permalink
judge if files directory and output_files directory are exist
Browse files Browse the repository at this point in the history
  • Loading branch information
To-Ki-O committed Feb 17, 2024
1 parent 3a5e605 commit c90e14c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
import os
import shutil

# lattice=Trueでテーブルの軸線でセルを判定
os.mkdir("./files")
os.mkdir("./output_files")
if not os.path.exists("./files"):
os.mkdir("./files")

if not os.path.exists("./output_files"):
os.mkdir("./output_files")

dfs = tabula.read_pdf("000876235.pdf", lattice=True, pages='all', pandas_options={'header': None})
i = 0
for df in dfs:
Expand Down

0 comments on commit c90e14c

Please sign in to comment.