[HN Gopher] Generate RSS feeds with grep(1), sed(1), and Awk(1)
       ___________________________________________________________________
        
       Generate RSS feeds with grep(1), sed(1), and Awk(1)
        
       Author : Tomte
       Score  : 47 points
       Date   : 2021-05-22 17:09 UTC (5 hours ago)
        
 (HTM) web link (www.romanzolotarev.com)
 (TXT) w3m dump (www.romanzolotarev.com)
        
       | miles wrote:
       | Strangely, the site itself does not appear to currently offer an
       | RSS feed. Was hoping to subscribe for updates to the article
       | collection: https://www.romanzolotarev.com .
        
         | rany_ wrote:
         | His RSS feed is https://www.romanzolotarev.com/rss.xml
        
           | axiolite wrote:
           | Thanks for the link. Seems his scripts need more work because
           | lots of HTML tags are being incorrectly escaped.
           | 
           | e.g.: <pre> $ <b>tr -cd ' -~' < /dev/urandom |</b> <i><b>fold
           | -w 20 | head -n 1</b></i> a(k#$(K ?I?d!^NM^(5x $ </pre>
        
           | miles wrote:
           | Thanks very much! Strange it is not displayed anywhere on the
           | page or even in the source code.
        
             | vbezhenar wrote:
             | Probably it's not ready for consumption yet.
        
       | thxg wrote:
       | I looked for such a tool a couple of years ago and did not find
       | any. As other comments indicate, this one may not yet be fully
       | general-purpose.
       | 
       | Could anyone here point me to an alternative? Something that
       | generates rss or atom from HTML files, and called from the
       | command line. Essentially, something like pandoc, but for rss.
        
       | k1m wrote:
       | This is very cool. I think the intention is to build RSS feeds
       | for sites you're building yourself. I work on an RSS generator
       | that works along similar lines, but intended to be used with
       | public pages, and the RSS items are selected with CSS selectors
       | you enter into the form: https://createfeed.fivefilters.org
        
       | jedimastert wrote:
       | Awk is really such an interesting tool that I don't see people
       | using enough. I could see how awk would be perfect for this
        
         | ape4 wrote:
         | Its named after the last names of the creators: Alfred Aho,
         | Peter Weinberger, and Brian Kernighan.
         | 
         | We're lucky C isn't named K&R
        
         | falsaberN1 wrote:
         | I use awk a lot myself. It's gotten to the point where I
         | _enjoy_ using it, might be a disease of some sort. But it 's
         | still been highly productive for parsing text streams or do
         | stuff like add proper visual feedback to plaintext tools,
         | pretty progress bars for wget/curl download jobs, monitoring
         | scripts and generally anything related to extracting bits of
         | data or pretty-printing.
         | 
         | I particularly enjoy using gawk (mostly for the more usable
         | match() and sed-like in-file editing), but will do fine with a
         | busybox awk or so as well. Something about the language just
         | clicks with my way of doing things. It's like the perfect
         | middle-ground between a shell script and starting a full python
         | (or equivalent) script.
        
       ___________________________________________________________________
       (page generated 2021-05-22 23:00 UTC)