Tuesday, 7 November 2006
SimpyAPI Python 1.0 Released 
Benjamin has been keeping himself busy - he just announced the release of his SimpyAPI Python, version 1.0! This version supports all calls on Simpy's REST API, and its usage is super-simple. Here's how you would search and fetch your links from Simpy:
# get and store links in files matching a query
client = SimpyClient('user', 'passwd')
links = client.getLinks( {'limit':20, 'q':'+tags:"programming" +tags:"trails"'} )
for i, link in enumerate(links):
s = urllib2.urlopen(link.url)
if s is not None: file(str(i)+".html", 'w+').write(s.read())
else: print "URL "+link.url+" was not handled
Clients in Java, Ruby, PHP, and Perl are available at the SimpyTools project. Thanks, Benjamin!
Posted by at 1:13 PM in News & Announcements
