mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-12 18:56:17 +00:00
fix: tab separate entries
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user