Created
May 20, 2011 05:41
-
-
Save nigelbabu/982416 to your computer and use it in GitHub Desktop.
Get etherpad contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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