[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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.


Reply to: