Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235093

Re: generate a rss.xml from a bunch of HTML files

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: generate a rss.xml from a bunch of HTML files
Date 2021-05-11 17:20 +0200
Message-ID <CdCkW-271-7@gated-at.bofh.it> (permalink)
References <CcOo9-3Cd-1@gated-at.bofh.it> <CcZ0d-2B8-5@gated-at.bofh.it> <CdmJc-RH-13@gated-at.bofh.it> <CdorE-1Z6-11@gated-at.bofh.it> <CdtKF-5oz-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 11 May 2021 at 09:08:16 (+0300), Andrei POPESCU wrote:
> On Lu, 10 mai 21, 19:23:02, David Wright wrote:
> > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote:
> > > 
> > > OK so no XSLT, no yacc for me, I got another idea, can you use
> > > the static generators, get the RSS, then discard everything
> > > else and use the RSS on the regular or real site?
> > 
> > AFAICT no trees will be destroyed or animals be harmed when you
> > throw away any output that is generated in excess of what you want.
> 
> But what about electrons?
> 
> Surely some electrons will be very inconvenienced about such waste.

Nope, for them it's gainful employment.

Seriously, though,
On Tue 11 May 2021 at 03:06:02 (+0200), Emanuel Berg wrote:
> The Wanderer wrote:
> 
> > I parsed the question as being about whether the resulting
> > rss.xml would be compatible with the input data, rather than
> > with the rest of the output data generated by the
> > static generator.

I didn't parse it that way (though I have to admit I'm finding
this thread quite difficult to follow). My comment was in recognition
that the OP seems less concerned now about generating and discarding
redundant formats. That's very different from "I would if it would do
what I want[,] namely get an RSS file and only that."

> > That is: if you write a set of HTML files completely by hand
> > (using no generators at all), then run a generator over them
> > to produce a rss.xml file, can you drop that file into place
> > in your Website structure and have things Just Work?
> 
> Yes, I think so!
> 
> There are also other options which have not been mentioned,
> for example, one is, there is for example html2markdown and
> several html2text, maybe one can then do markdown2rss
> or text2rss?

I thought the suggestion for markdown came from Charles. If that
method were to generate HTML as well, then that's no bad thing,
the OP could always compare it with the original, as QA.

BTW I downloaded one of the pages (Blodstensskogen Tree House.html)
and, as well as finding that I had coincidentally downloaded some of
their photos last August, just out of interest, the code looked
laid out very clearly—quite unlike so many web pages I see.
Having read through the rather old https://interglacial.com/tpj/26/
it looked to me as though the OP is halfway there.

Cheers,
David.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-09 12:00 +0200
  Re: generate a rss.xml from a bunch of HTML files davidson <davidson@freevolt.org> - 2021-05-09 23:20 +0200
    Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-10 02:00 +0200
    Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-10 16:20 +0200
      Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-10 17:20 +0200
        Re: generate a rss.xml from a bunch of HTML files davidson <davidson@freevolt.org> - 2021-05-13 00:10 +0200
    Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-11 00:40 +0200
      Re: generate a rss.xml from a bunch of HTML files David Wright <deblis@lionunicorn.co.uk> - 2021-05-11 02:30 +0200
        Re: generate a rss.xml from a bunch of HTML files The Wanderer <wanderer@fastmail.fm> - 2021-05-11 02:40 +0200
          Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-11 03:10 +0200
            Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-11 03:40 +0200
        Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-11 02:50 +0200
        Re: generate a rss.xml from a bunch of HTML files Andrei POPESCU <andreimpopescu@gmail.com> - 2021-05-11 08:10 +0200
          Re: generate a rss.xml from a bunch of HTML files David Wright <deblis@lionunicorn.co.uk> - 2021-05-11 17:20 +0200
            Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-12 03:20 +0200
              Re: generate a rss.xml from a bunch of HTML files The Wanderer <wanderer@fastmail.fm> - 2021-05-12 12:10 +0200
                Re: generate a rss.xml from a bunch of HTML files Greg Wooledge <greg@wooledge.org> - 2021-05-12 13:40 +0200
                Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-12 13:50 +0200
                Re: generate a rss.xml from a bunch of HTML files Curt <curty@free.fr> - 2021-05-12 19:10 +0200
              Re: generate a rss.xml from a bunch of HTML files Emanuel Berg <moasenwood@zoho.eu> - 2021-05-12 14:20 +0200
      Re: generate a rss.xml from a bunch of HTML files Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2021-05-11 14:20 +0200

csiph-web