How can I validate RSS?
Francesco Poli <[email protected]> Tue, 5 Jul 2022 22:58:50 +0200
| Newsgroups | gmane.linux.debian.devel.sgml |
|---|---|
| Message-ID | <[email protected]> |
--Signature=_Tue__5_Jul_2022_22_58_50_+0200_QiojrObKX6CT9bQo
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello,
I am searching for a Debian package to parse RSS and validate it (XML
well-formedness + compliance with the RSS 2.0 specification) from the
command-line or from a few lines of code using a suitable library.
The reason is that package [apt-listbugs] (which I maintain) has a
feature that produces an RSS output.
[apt-listbugs]: <https://tracker.debian.org/pkg/apt-listbugs>
I would like to add an autopkgtest test that parses some RSS output and
checks its validity.
But it doesn't look easy to find a Debian package that can automate
this check. Searching the web, I mainly find web applications that can
validate RSS (such as [W3C feed validator], which appears to be
DFSG-free and also usable on a localhost as a [Python program], but
it does not seem to be included in Debian).
[W3C feed validator]: <https://validator.w3.org/feed/>
[Python program]: <https://github.com/w3c/feedvalidator>
Which Debian package (command-line tool or simple-to-use library) would
you suggest to validate RSS (and maybe also to parse it)?
Please let me know your take on this subject.
Thanks for your time!
P.S.: Please Cc me on replies, as I am not subscribed to the mailing
list. Thanks!
--=20
http://www.inventati.org/frx/
There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
GnuPG key fpr =3D=3D CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
--Signature=_Tue__5_Jul_2022_22_58_50_+0200_QiojrObKX6CT9bQo
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEygERR5zS79/7gjklPhwn4R9pv/4FAmLEpgoACgkQPhwn4R9p
v/6ivg/8DR9zDZ/VmEcHdJPQAyvhiHwwO36JOraap63FxPmU2q2Q4x6WK8fAn3oi
71pRkBivD9WCNBAEDz2KQ6KtnPvbUZT4WihwNxRl0HGtBB3XnwJeHhFJtMo3guDI
KGVAlqEssQBn2sB8HXoZsjxq0fve1O7Su75iRKtQChaJt6i6O4nCEWO6nAd7pn+V
2ALX3+H3It/r9+nAJuq10XOV164vcEQcDEx21Uufa652IjwkmlVnZ5yqcn6rYFhn
Hei2qhoeyoLW/NdU/J3tQ7km/+tSTW9bp261j5M1eUq+SgYnQxjYpFDJyAreE59A
1TW3dxcf80A/mAGu2KKzHziUEs/kj1Hf4NnwnV2RK3Umc3gZCDWZtURKu+MmU6Ei
cRqOVbzLktlVGKc5fbAMlCdovW1oVECHD8h2KGWPJbMKCPghPpguR2PA3w6WPmnp
P0FNmtNs6Lrnl67r88uYfXDL6CGRj7SEwp3+tFF5qLNqw+L7OM3FiWa5Sw1GwTZM
AED2tEWILKM3aA95TyFOH8OkgvvRdlv/02VxtesBEy8LUgbhcIgY2OFuqAXSDRTE
33rgTLeyNHxt0gQPxwjn30l1ZZOPfD5zsYVFXwnD6y8ZYJsOii1ZiYDdk/h6tMki
FhxXJcdVPE5hZ/aL5GaYi73NOHk1jMd2rQejTHkb5JjB+rRA/lI=
=LnwC
-----END PGP SIGNATURE-----
--Signature=_Tue__5_Jul_2022_22_58_50_+0200_QiojrObKX6CT9bQo--