Hacker News new | ask | show | jobs
by 1vuio0pswjnm7 924 days ago
Solution found.

   curl -sA "" https://developer.chrome.com/blog/sitemap.xml \
   |sed -n '
   1i\
   <?xml version="1.0" encoding="UTF-8" ?>\
   <rss version="2.0">\
   <channel>
   s}\(<loc>\)\(.*\)\(</loc>\)}\
   <item>\
   <title>\2</title>\
   <description>\2</description>\
   <link>\2</link>\
   </item>}p;
   $a\
   </channel>\
   </rss>
   ' 
If this isn't correct RSS, please forgive me. I'm not an "engineer". I prefer a personalised, simple HTML made from URLs as opposed to XML. I write filters to generate this in C.

NB. The public sitemap.xml still refers to an (unofficial?) RSS feed.