Created
April 3, 2023 10:53
-
-
Save arnaldoleandro/0e6288d7d67e360d90f612527cac2371 to your computer and use it in GitHub Desktop.
setting up for your needs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
filename = 'your_input_file.xml' | |
input_file = f'path/to/your/input/folder/{filename}' | |
size_limit = 200 #MEGABYTES | |
size_limit = size_limit * 10240 #convert to BYTES | |
output_dir = 'path/to/your/output/folder/' | |
output_file_prefix = 'output_file_prefix_' | |
root_tag = get_root_tag(input_file) | |
print(root_tag) | |
last_element_close = '</your_row_tag>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment