Skip to content

Commit 3cdd3a8

Browse files
authored
Update getpdf.py
1 parent 559ec95 commit 3cdd3a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: getpdf.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from bs4 import BeautifulSoup
33
from tabula import read_pdf
44
from tabula import convert_into
5+
import os
56

67
class GetPdf:
78
def __init__(self):
@@ -26,5 +27,5 @@ def get_pdf(self):
2627
def convert_pdf(self):
2728
df = read_pdf("pdf62.pdf", pages='all')[0]
2829
convert_into("pdf62.pdf", "yemekhane.csv", output_format="csv", pages='all')
29-
GetPdf().get_pdf()
30-
GetPdf().convert_pdf()
30+
os.rename("pdf62.pdf", "pdfs/pdf62.pdf")
31+

0 commit comments

Comments
 (0)