sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 229f33c4a66b8d4c60bfe39a068c34bf095f5728
parent e96bdb644ae2f49125079e6218e2777caf633e1c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  9 Jun 2023 14:45:57 +0200

sfeedrc.5: improve example by setting a different User-Agent

This is useful for sites that block clients that don't have a User-Agent header
set.

Diffstat:
Msfeedrc.5 | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeedrc.5 b/sfeedrc.5 @@ -166,8 +166,8 @@ file: .Bd -literal # fetch(name, url, feedfile) fetch() { - # allow for 1 redirect, hide User-Agent, timeout is 15 seconds. - curl -L --max-redirs 1 -H "User-Agent:" -f -s -m 15 \e + # allow for 1 redirect, set User-Agent, timeout is 15 seconds. + curl -L --max-redirs 1 -H "User-Agent: sfeed" -f -s -m 15 \e "$2" 2>/dev/null } .Ed