Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
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
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
|
DetailsHey,
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
Thursday, 27 March 2008, 08:44 GMT
Reason for closing: Fixed
Additional comments about closing: Implemented with the JSON interface
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.
http://bbs.archlinux.org/viewtopic.php?id=25718
The point is, a much simpler method of querying without needing to parse html destined for a browser.