AUR web interface

Tasklist

FS#3225 - Easy method for programs to access AUR database

Attached to Project: AUR web interface
Opened by James Rayner (iphitus) - Sunday, 25 September 2005, 01:35 GMT
Last edited by Callan Barrett (wizzomafizzo) - Thursday, 27 March 2008, 08:44 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hey,

I was just wondering how long it would be until we see an easy way for a program to query the AUR's database.

I've been using a few scripts to get things from the AUR, but they're all flaky and break with each update.

I was thinking about having another PHP file say, query.php, which you can pass options,

so..
aur.archlinux.org/query.php?pkg=kernel26archck

and that would print in some easy to parse, formatted plain text, the details of that package.

and maybe other options like
aur.archlinux.org/query.php?pkgbuild=kernel26archck
for the pkgbuild

aur.archlinux.org/query.php?tgz=kernel26archck
for the url of the tar.gz

Thoughts?
This task depends upon

Closed by  Callan Barrett (wizzomafizzo)
Thursday, 27 March 2008, 08:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Implemented with the JSON interface
Comment by Francois Charette (Firmicus) - Friday, 21 April 2006, 08:48 GMT
That would be great. The file websearch.py in the aurbuild package (unsupported)
offers one solution, but you're right that this is not satisfactory and likely
to break after updates of the AUR web interface.

The "query.php" interface might likewise deliver simple XML-formatted data,
which would also be easy to parse.

My own additional wish -- for the web interface as well as for the hypothetical
"query.php" script -- would be to further differentiate search queries by package
name and descriptions. Right now the 'SeB' flag in packages.php offers the choice
between Name, Maintainer and Submitter, whereas Name applies both to the package
name and the package description.
Comment by F (F) - Tuesday, 29 May 2007, 20:52 GMT Comment by James Rayner (iphitus) - Wednesday, 30 May 2007, 00:04 GMT
No, using yaourt or another tool isnt the point, most of them still parse the html of the website, and that's just icky.

The point is, a much simpler method of querying without needing to parse html destined for a browser.

Loading...