Python xml-rpc call


/ Published in: Python
Save to your folder(s)

This snippets try to download itself from http://snipplr.com using xml-rpc


Copy this code and paste it in your HTML
  1. #!/usr/bin/python
  2.  
  3. import xmlrpclib
  4.  
  5. server=xmlrpclib.Server("http://snipplr.com/xml-rpc.php")
  6.  
  7. snippet=server.snippet
  8.  
  9. print snippet.get("1273")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.