You are not logged in.

#1 2018-06-03 23:56:41

mgdobachesky
Member
Registered: 2018-06-03
Posts: 20

Arch API Endpoints for Development

Hey guys,

I am looking for an API endpoint for the Arch Linux news section of their website.
Currently I am using the source from this URL: https://www.archlinux.org/feeds/news/
However, that endpoint does not seem to be very well suited for use in scripts because it is an RSS feed.

So for my question: are there currently any other endpoints out there that would make writing scripts a bit less of a hassle?

- Mike

Offline

#2 2018-06-03 23:59:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Arch API Endpoints for Development

No.

Offline

#3 2018-06-04 00:15:50

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Arch API Endpoints for Development

rss is valid xml, so you can use any xml library (e.g. python ElementTree) or tools like xmlstarlet to parse it. xml is not really more hassle than json.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2018-06-04 00:22:40

mgdobachesky
Member
Registered: 2018-06-03
Posts: 20

Re: Arch API Endpoints for Development

Okay thanks guys!
I understand that rss is just xml, and I will continue using it as such.
I just wasn't sure if there were any dedicated API endpoints intended to make development easier.

Thanks again,
- Mike

Offline

#5 2018-06-04 02:31:02

mgdobachesky
Member
Registered: 2018-06-03
Posts: 20

Re: Arch API Endpoints for Development

progandy,

I would like to add that I took your advice and started using xmlstarlet (I was using grep before), and I am really happy about how useful it is.
Thanks for mentioning it; my script is going much smoother now.

- Mike

Offline

Board footer

Powered by FluxBB