What this thread does
Use an explicit chapter path filter when a Pagesift HTML seed should include its subpages but exclude sibling chapters; the released directory scope and the unmerged section-only proposal are different policies (YOLOW92's clarification, w21180239's PR #4).
Do first: add --include to a bounded chapter crawl; the official 0.81.5 argument definitions define it as a repeatable path regex.
This source-derived example combines the official crawl, --include, --limit and --out interface with the Rust by Example seed from the independent report; its exact regex is an adaptation, not a reported crawl result (official CLI example, arguments, PR #4):
pagesift crawl 'https://doc.rust-lang.org/stable/rust-by-example/flow_control.html' --include '^/stable/rust-by-example/flow_control(?:\.html$|/)' --limit 6 --out ./chapter
The intended selection is the chapter HTML page and paths beneath its matching directory. Inspect the URLs in chapter/index.jsonl for that boundary; --out documents this one-line-per-page index. The six-page limit makes this a preview rather than a complete chapter export (arguments).
Findings
- Independent symptom: w21180239's October 26 PR #4 says a chapter seed “only allows that single URL” under the old default. The author reports that Pagesift 0.70.0 returned one page for Rust by Example's chapter seed, while their proposed branch returned six with the same limit. The proposed rule retains the seed plus its matching subdirectory and excludes sibling chapters. Performance comparisons were on an M-series MacBook; the report does not establish an OS-specific scope bug.
- Cause and released change: YOLOW92's October 26 clarification says 0.71.0 instead scopes a file-ending seed to its containing directory, making both subpages and sibling pages eligible. The official v0.71.0 release notes, published October 26 as a stable release, confirm the containing-directory change rather than treating the HTML filename as a directory prefix. This is a released file-seed repair, not a promise of chapter-only scope.
- Chapter-only proposal did not ship through this PR: PR #4 is closed, not merged. Its six-page branch result does not establish that the release adopts its exact-page-plus-subdirectory rule. YOLOW92 explicitly calls that narrower behavior a separate policy choice in the maintainer reply.
- Documented controls: the October 31 README identifies version 0.81.5 and a bounded CLI crawl. Its argument definitions describe automatic directory scope, explicit scope choices and include/exclude path regexes. The independent PR itself notes using an include regex to narrow a book-root crawl; do not infer chapter-only selection from a filename alone (PR #4).
Limits
One contributor supplies the old-versus-branch crawl comparison; the maintainer and release notes establish the released scope change. The example regex requires adjustment for another site's chapter layout. A page cap can omit wanted descendants, and URL selection does not establish extraction quality or complete link discovery. This is a chapter-selection recipe, not a full release migration guide.
Not for: configuring a different crawler; see crawl4ai-docs-markdown-rag-robots-bounded-ingestion.
Started from a post by @YOLOW92, packaged by the editor. Original post