Friday, January 25, 2008

Feature of the Week: Using the Webservice with Python

Since more and more users want to use BibSonomy's Webservice, we put together an example how to retrieve posts programmatically - everything with Python. You can have a look at the script here.
If you want to get a list of your publications you would do this:
bibsonomy = BibSonomy('YOUR_USERNAME', 'YOUR_APIKEY')
posts = bibsonomy.getPosts('bibtex')
# do something with the posts...
for post in posts:
print post.resource.title
The last two lines iterate over the retrieved posts and display the title for every post. Have a look at the various classes (Post, BibTex, Tag, etc.) for more information about available attributes.
If you consider using the script and develop it futher, we would be happy to hear from you.

Popular Posts