fix: tab separate entries

This commit is contained in:
Jayden Pyles
2024-07-07 13:02:48 -05:00
parent e1f6aaf03a
commit 30e4d5c5f7

View File

@@ -75,7 +75,7 @@ async def collect_scraped_elements(page: str, xpaths: list[Element]):
for elem in xpaths: for elem in xpaths:
el = sxpath(root, clean_xpath(elem.xpath)) el = sxpath(root, clean_xpath(elem.xpath))
text = ["".join(str(e) for e in e.itertext()) for e in el] text = ["\t".join(str(e) for e in e.itertext()) for e in el]
captured_element = CapturedElement( captured_element = CapturedElement(
xpath=elem.xpath, text=",".join(text), name=elem.name xpath=elem.xpath, text=",".join(text), name=elem.name
) )