Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Info > New feature: The CSDb webservice.
2005-02-18 21:14
Perff
Administrator

Posts: 1665
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
2005-02-20 10:30
Sander

Registered: Jan 2002
Posts: 487
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)
2005-02-20 13:54
Ben
Account closed

Registered: Feb 2003
Posts: 163
Yeah, a socio-metrical image with key-sceners and key-groups and their peripherics :)
2011-07-07 07:52
Bones99

Registered: May 2005
Posts: 29
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?
2011-07-07 08:38
Perff
Administrator

Posts: 1665
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.
2011-07-08 10:58
Bones99

Registered: May 2005
Posts: 29
Thats awesome. many thanks .
2011-07-08 15:38
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.?
2011-07-29 23:07
Bones99

Registered: May 2005
Posts: 29
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/
2018-08-19 12:33
JCH

Registered: Aug 2008
Posts: 193
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? =)
2018-08-20 09:50
chatGPZ

Registered: Dec 2001
Posts: 11123
isnt arbitrary inserting of linebreaks a bit counterproductive for what you want on a web frontend?
2018-08-20 11:26
JCH

Registered: Aug 2008
Posts: 193
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.
2018-08-20 11:32
chatGPZ

Registered: Dec 2001
Posts: 11123
i see. should be <p> then though :)
2018-08-20 12:41
JCH

Registered: Aug 2008
Posts: 193
Yeah, that might work better.
2018-08-20 14:39
JCH

Registered: Aug 2008
Posts: 193
Talked to Perff via PM. The newline stuff was my bad and the second one is now fixed.
2022-05-14 16:12
instant

Registered: Mar 2020
Posts: 20
I'd be happy to help build out the search function in the web service.

I think the depth is returning too much data. Even set at 2 it's returning several levels of data deeper than I would expect. I could help fix this too.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Medicus
zscs
cba
Krill/Plush
Oxbow/Xenon
CA$H/TRiAD
Didi/Laxity
Alakran_64
tlr
Guests online: 129
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Musicians
1 Vincenzo  (9.8)
2 Rob Hubbard  (9.7)
3 Stinsen  (9.7)
4 Jeroen Tel  (9.6)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.064 sec.