[HN Gopher] Show HN: Sitemap2Feed - Convert an online sitemap to...
___________________________________________________________________
Show HN: Sitemap2Feed - Convert an online sitemap to Atom, RSS and
JSON feeds
Author : midzer
Score : 37 points
Date : 2023-07-08 14:14 UTC (8 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Reptur wrote:
| This is handy, but the XML URL needs to be definable also maybe
| output location.
|
| Something like: go run main.go
| -sitemap=https://example.com/sitemap.xml -output=~/some/folder
|
| Also I'd print out the file paths of the newly created files as
| they get saved for better user feedback.
| benatkin wrote:
| It sounds like a good idea to make it easy for more sites to have
| an RSS feed.
|
| Here is the code. It's pretty impressive how simple it is. It
| uses a library to read in the sitemap and loop through each link,
| and map the content and output a feed entry.
|
| https://github.com/midzer/sitemap2feed/blob/master/main.go
| matricaria wrote:
| I little documentation would be great. What does it do and how
| does it work?
|
| Would this run on a server and fetch the sitemap? Or could this
| be implemented into an RSS reader?
| midzer wrote:
| Thanks for your feedback. Yeah, documentation is lacking.
| Working on it the upcoming days :)
___________________________________________________________________
(page generated 2023-07-08 23:01 UTC)