aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py
index c0742914..4d7b29fb 100644
--- a/python/fatcat_tools/importers/common.py
+++ b/python/fatcat_tools/importers/common.py
@@ -583,6 +583,7 @@ class Bs4XmlLinesPusher(RecordPusher):
continue
soup = BeautifulSoup(line, "xml")
self.importer.push_record(soup)
+ soup.decompose()
counts = self.importer.finish()
print(counts)
return counts
@@ -600,6 +601,7 @@ class Bs4XmlFilePusher(RecordPusher):
for record in soup.find_all(self.record_tag):
self.importer.push_record(record)
counts = self.importer.finish()
+ soup.decompose()
print(counts)
return counts