Skip to content

Instantly share code, notes, and snippets.

@nigelbabu
Created May 20, 2011 05:41
Show Gist options
  • Save nigelbabu/982416 to your computer and use it in GitHub Desktop.
Save nigelbabu/982416 to your computer and use it in GitHub Desktop.
Get etherpad contents
#!/usr/bin/env python
import urllib2
import sys
bp = sys.argv[1]
url = "http://pad.ubuntu.com/ep/pad/export/uds-o-%s/latest?format=txt" % bp
page = urllib2.urlopen(url)
print page.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment