dualfroz ce36d8e544 fix: keep every entry heading on listing pages (#774)
A blog index, archive or category page holds several <article> siblings.
BODY_XPATH's "(.//article)[1]" keeps the first entry only, so the page
looks under-extracted and escalates to justext, which emits paragraphs
and drops every heading.

Give the recall pass a listing expression that takes the container of
the sibling articles, so the retry returns all entries with their heads
and wins the escalation. Recall only: on an article page the same shape
is a related-posts strip, whose container would hide the body.
2026-10-10 15:26:09 +02:00
S
Description
My contributions to adbar/trafilatura: 6 commits
621 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%