We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 428cbb2 commit 0cb8211Copy full SHA for 0cb8211
html2excel/__init__.py
@@ -1,3 +1,2 @@
1
from .excel.parser import ExcelParser
2
-
3
-__all__ = ["ExcelParser"]
+__all__ = ["ExcelParser"]
html2excel/__main__.py
@@ -0,0 +1,15 @@
+import sys
+from html2excel import ExcelParser
+
4
5
+if __name__ == "__main__":
6
+ if len(sys.argv) == 3:
7
+ file_path = sys.argv[1]
8
+ save_path = sys.argv[2]
9
+ parser = ExcelParser(file_path)
10
+ parser.to_excel(save_path)
11
+ else:
12
+ # First argument for file name, we'll ignore that
13
+ print("Expected 2 arguments. Got {num}".format(num=len(sys.argv)-1))
14
15
+# TODO: handle exceptions
html2excel/base/__init__.py
@@ -0,0 +1 @@
+__all__ = []
main.py
0 commit comments