Skip to content

Commit

Permalink
fix: Python handler Fixed without comment
Browse files Browse the repository at this point in the history
  • Loading branch information
n0c3Nz committed Nov 25, 2024
1 parent 5a7e465 commit fe708ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/backend/scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def collect_scraped_elements(page: tuple[str, str], xpaths: list[Element])
for e in el:
if isinstance(e, etree._Element):
text = "\t".join(str(t) for t in e.itertext())
else: # Es un texto directamente
else:
text = str(e)
captured_element = CapturedElement(
xpath=elem.xpath, text=text, name=elem.name
Expand Down

0 comments on commit fe708ba

Please sign in to comment.