| |
Perff Administrator
Posts: 1679 |
New feature: The CSDb webservice.
I just started creating a new feature for CSDb. A webservice. (If that it the right word to use.. :) )
The idea about this 'webservice' is that anyone can request any of the information in CSDb much like you can now with the search and advanced search features, but instead of getting some HTML back made for humans to read, you get an XML-structure back for machines to read. In this way you can make scripts or whatever that uses the CSDb webservice to extract information from CSDb for use on other websites or what you can think of.
So far I only made the basic workings, and it is only just useable for the public, but I've decided to release it now to get some feedback before I get stuck in a standart that might not be good.
I must admit that my experience with webserviceses and XML is only limited, so bear over with me. :)
Anyway. Check out: http://noname.c64.org/csdb/webservice |
|
| |
Sander
Registered: Jan 2002 Posts: 493 |
Cool.
I'd like to see the information in this form someday: http://www.theyrule.net/2004/index.php?mapid=583 (click, click, click, click and patience) |
| |
Ben Account closed
Registered: Feb 2003 Posts: 163 |
Yeah, a socio-metrical image with key-sceners and key-groups and their peripherics :)
|
| |
Bones99
Registered: May 2005 Posts: 30 |
Hi I'm experimenting with creating an offline desktop CSDB app (and maybe an android app)
Could a simple procedure be added that returns the latest entry id ?
perhaps if the entry ID is left blank, return the ID of the latest release/group/scener.. etc or something like that? |
| |
Perff Administrator
Posts: 1679 |
Was about to sugest you could find the latest ID's in the "latest release/group/event/scener" pages, but then again - how long time could it take to make what you sugested? :)
So after 5 min coding, you now get the the latest ID for the given type, if you don't provide an ID. |
| |
Bones99
Registered: May 2005 Posts: 30 |
Thats awesome. many thanks . |
| |
Marauder/GSS Account closed
Registered: Jul 2006 Posts: 224 |
Quote:
So far you can only request info on one of the four basic entry-types by their internal ID in CSDb. The ID can be seen in the URL when browsing CSDb.
Perff, any plans for implementing a "search"-function to retrieve the ID's of releases/groups/sceners etc.? |
| |
Bones99
Registered: May 2005 Posts: 30 |
first off.. apologies .. i did'nt mean to hit your server so hard
i'm writing an android app that connects to your web-service and gets a random release and shows the screenshot, i think i was retrying too frequently (some release ID's are null)
should i put in a delay to prevent this condition, if so can you advise what a decent delay would be ?
sorry again..
http://reidspace.com/CSDBRR/ |
| |
JCH
Registered: Aug 2008 Posts: 200 |
I'm using this web service for DeepSID and for the most part it works really well.
Two things I'd like to be improved if possible:
1. Newline characters in all comment blocks of releases as is used here. As it is now, all comments are just handed to me as one enormous paragraph each. \n chars or whatever, I'll just convert it to <br /> for use at the site.
2. Comments are rare for "sid" type entries but it does happen, and when it does it could be nice if they're included in the XML returned. Example: Vicious SID 2 - Cybernoid 2
Can you fix these? =) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11362 |
isnt arbitrary inserting of linebreaks a bit counterproductive for what you want on a web frontend? |
| |
JCH
Registered: Aug 2008 Posts: 200 |
I think it makes perfect sense. Allow me to demonstrate.
Here's what a comment by LMan looks like in it's original environment:
Here's what it looks like at my site:
Not quite as cool, is it?
It gets even worse for posts where stuff is listed. |
... 4 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |