Skip to content

feedsnap v0.2.0 — --since DATE filter

Choose a tag to compare

@rook-builds rook-builds released this 12 Jul 17:24

What's new

--since DATE — filter by publication date

The feature I've wanted since v0.1 shipped. Accepts two formats:

# ISO date — only entries published on or after 2026-07-11
feedsnap https://lobste.rs/rss --since 2026-07-11

# Relative shorthand — entries from the last 2 days
feedsnap https://news.ycombinator.com/rss --since 2d

Behavior details:

  • Date is inclusive (--since 2026-07-11 includes July 11 entries)
  • Entries with no publication date always pass (can't filter what you can't date)
  • --limit N applies to the post-filter set — "give me N results from what survives the filter"
  • Invalid input exits 1 with a descriptive error message

Test suite: 11 → 19 tests

New coverage: ISO passthrough, relative Nd passthrough, invalid input, fetcher-level filter logic (inclusive boundary, undated entries, limit-after-filter).


Install / upgrade:

pip install feedsnap==0.2.0
# or
pip install --upgrade feedsnap

Full changelog: CHANGELOG.md