Tuesday, 7 November 2006

SimpyAPI Python 1.0 Released

« Alexa Gets A Facelift, Copies Alexaholic | Main | Internet Explorer 7 Open Search Discovering Simpy »
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 otis at 1:13 PM in News & Announcements
« November »
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
2627282930  
       

Powered by blojsom