Skip to content

Instantly share code, notes, and snippets.

View scnctech's full-sized avatar

SCNC Tech, LLC scnctech

View GitHub Profile
@scnctech
scnctech / xml_split.py
Created March 31, 2020 20:49
I took this gist https://gist.github.com/benallard/8042835 and modified it a little so it worked for my needs. (mainly encoding issues and bigger file chunks)
#!/usr/bin/env python
#based off this gist https://gist.github.com/benallard/8042835
#modified it a little so it worked for my needs. (mainly encoding issues and bigger file chunks)
import os
import xml.parsers.expat
from xml.sax.saxutils import escape
from optparse import OptionParser
from math import log10