Open mik-laj opened 4 years ago
I have also written a script which crawls sitemaps and collects release notes. Note: It needs xmllint v2.9.9
function process() {
local target_url=$1
for url in $(curl -s ${target_url} | xmllint --nowarning --xpath '/*[local-name()="sitemapindex"]/*[local-name()="sitemap"]/*[local-name()="loc"]/text()' - )
do
# echo "# in ${url}"
curl -s ${url} | xmllint --xpath '/*[local-name()="urlset"]/*[local-name()="url"]/*[local-name()="loc"]/text()' - | grep -E 'release-notes|security-bulletins|permissions-change-log'
process ${url}
done
}
process https://cloud.google.com/sitemap.xml
Result
@apstndb God loves us. Today he created a new page with an index .. https://cloud.google.com/release-notes/all
Hello,
Not all release notes have channels, so I have prepared a list of release note pages
Is this useful for you?
Best regards, Kamil