You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import pdftables_api
import os
c = pdftables_api.Client('XYZ')
root_dir = 'C:\PythonTests\pdf'
for directory, subdirectories, files in os.walk(root_dir):
for file in files:
print (file)
c.html(file, file)
File "c:/PythonTests/for.py", line 10
c.html('file, file)
^
SyntaxError: EOL while scanning string literal
I am trying to get every single file and convert it. How to fix this issue?
The text was updated successfully, but these errors were encountered:
import pdftables_api
import os
c = pdftables_api.Client('')
file_path = "C:\\PythonTests\\"
for file in os.listdir(file_path):
if file.endswith(".pdf"):
c.html(os.path.join(file_path,file), file+'.html')
File "c:/PythonTests/for.py", line 10
c.html('file, file)
^
SyntaxError: EOL while scanning string literal
I am trying to get every single file and convert it. How to fix this issue?
The text was updated successfully, but these errors were encountered: