You are not logged in.
Pages: 1
so... I came across this little gem:
http://freshmeat.net/faq/view/49/
freshmeat has an xmlrpc interface... which should allow things (like the AUR, hint hint) to query freshmeat's version of a package....
however... it doesn't like me...
import xmlrcplib
srv=xmlrpclib.Server('http://freshmeat.net/xmlrpc/')
srv.login('phrakture','XXXXXXXXXXX')
produces: xmlrpclib.Fault: <Fault 10: 'Login incorrect'>... which is totally wrong because my login is valid... no ideas... can anyone get this to login?
for the record you want to do something like so:
session=srv.login('user','pass')
print srv.fetch_branch_list(session['SID'],'some_project_name')
Offline
Hey phrakture, try using a dictionary for the login username & password
>>> import xmlrpclib
>>> srv=xmlrpclib.Server('http://freshmeat.net/xmlrpc/')
>>> srv.login({'username':'tmaynard','password':'XXXXXXXXXX'})
{'Lifetime': 600, 'API Version': '1.03', 'SID': '0535d169f82838bbbb8e9c7f785c0282'}
>>>
Happy Hacking
--Todd
Offline
crap! I knew it was something like that... must have skipped that part in the docs 8)
And damn... it doesn't seem to work as expected... I can't get info on anything because I get permission denied errors... which sucks - I was hoping I'd be able to use this interface as a little AUR plugin to "check current version" or something like that.... could be an automatic way to flag things out of date....
/me shrugs
Offline
Pages: 1