You are not logged in.

#1 2008-02-01 15:03:38

ibendiben
Member
Registered: 2007-10-10
Posts: 519

freshmeat package details in script? via xml-rpc api?

Is there any way I could fetch freshmeat.net project details from within a script?
I know there is an xml-rpc api:
http://freshmeat.net/faq/view/49/
http://freshmeat.net/search/?q=freshmeat
I have no idea how it works or how to use it...

What I'd like to be able to do is something like this:

myscript --project "kaffeine"

And then that it retuns something like:

Project: Kaffeine Player - Default branch

Section: Unix

Added: Sun, Nov 16th 2003 04:52 PDT (4 years, 2 months ago)

Updated: Sun, Mar 26th 2006 05:11 PDT (1 year, 10 months ago)

About:
Kaffeine is a simple and easy to use media player based on the xine-lib and full integrated in KDE3. It supports drag and drop and provides an editable playlist, a Konqueror plugin, a Mozilla plugin, OSD, and much more.

Author: Jürgen Kofler

Homepage: http://kaffeine.sourceforge.net/

Categories:
Desktop Environment :: K Desktop Environment (KDE) :: Themes KDE 3.x,  Multimedia :: Sound/Audio :: CD Audio,   Multimedia :: Sound/Audio :: Players :: MP3,  Multimedia :: Video

Dependencies:
KDE 3.2 (required)
xine 1.0 (required)
GStreamer 0.8.10 (optional)
GStreamer (optional)

Stats:
Rating: 8.54/10.00 (12 votes)
Vitality: 0.01% (Rank 5922)
Popularity: 3.29% (Rank 1275)
Record hits: 37,335
URL hits: 20,460
Subscribers: 69

Any ideas on how I should handle this would be greatly appreciated smile thanks!

Last edited by ibendiben (2008-02-01 15:15:02)

Offline

#2 2008-02-01 15:48:13

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: freshmeat package details in script? via xml-rpc api?

Projinfo seems interesting...
http://freshmeat.net/projects/projinfo/
dependencies:

aur/perl-http-request-ascgi
extra/perl-xml-simple

Last edited by ibendiben (2008-02-01 16:48:27)

Offline

#3 2008-02-01 16:46:24

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: freshmeat package details in script? via xml-rpc api?

quite neat indeed cool

/usr/bin/freshmeat_info.pl -tags projectname_full -tags url_homepage -tags date_added -tags date_updated -tags desc_full -tags latest_release_version -tags desc_short -tags vitality_percent -tags vitality_rank -tags vitality_score -tags rating_rank -tags rating_count -tags rating -tags popularity_persent -tags popularity_score -tags license -tags latest_release_date amarok

popularity_rank : 397
subscriptions : 171
projectname_full : Amarok
url_homepage : http://freshmeat.net/redir/amarok/42210/url_homepage/
date_added : 2003-07-20 11:02:00
date_updated : 2007-08-19 08:38:32
desc_full : Amarok is a sound system-independent audio-player for Unix. Its interface uses a powerful "browser" metaphor that allows you to create playlists that make the most of your music collection.
latest_release_version : 1.4.7
desc_short : The audio player for KDE.
vitality_percent : 0.12
vitality_rank : 1213
vitality_score : 549.01
rating_rank : 39
rating_count : 59
rating : 8.83
popularity_score : 4333.01
license : GNU General Public License (GPL)
latest_release_date : 2007-08-19 08:38:32

Last edited by ibendiben (2008-02-01 18:06:06)

Offline

Board footer

Powered by FluxBB