parent
db84a9bb44
commit
ea24fa8325
@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
import json
|
||||
|
||||
json_file_path = Path('json/books.json')
|
||||
|
||||
json_data = {'books': []}
|
||||
if not json_file_path.is_file():
|
||||
json_file = open(json_file_path, 'w')
|
||||
json_file.write(json.dumps(json_data, indent=4))
|
||||
json_file.close()
|
||||
print('JSON File Created :: '+json_file.name)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
from csv2df import get_book_content, get_book_metadata
|
||||
|
||||
from create_xml import create_xml_file
|
||||
from xml_parser.create_xml import create_xml_file
|
||||
|
||||
create_xml_file(get_book_content(), get_book_metadata())
|
||||
|
||||
Loading…
Reference in new issue