commit a4eec2e189e94e462be8c24d2a27bcb4e5e9cfb0 parent 55bc65ad56cfc2a619464de94e8cecd82b3f793c Author: hhvn <dev@hhvn.uk> Date: Mon, 17 Jan 2022 14:24:19 +0000 .s/s/atom: support single quoted hrefs Diffstat:
A | .scripts/scrape/atom | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.scripts/scrape/atom b/.scripts/scrape/atom @@ -0,0 +1,3 @@ +#!/bin/rc + +grep -Eo '<link[^>]*application/(atom|rss)\+xml[^>]*>' | sed 's/.*href=["'']//;s/["''].*//'