4 # sprunge.us text to url service:
5 # For the Purpose of Making Easier,
6 # the communal debugging of Failed Scripts,
10 # wget http://sprunge.us/sprunge
12 # Put the script somewhere in $PATH, pipe text in,
13 # and get a URL where it ended up.
14 # URL should be good for at least 24 hours.
18 # http://sprunge.us/1rjub6yu
27 print 'use: <command> | ' + os
.path
.basename(sys
.argv
[0])
32 data
= urllib
.urlencode({ 'sprunge' : inp
})
33 request
= urllib2
.Request('http://sprunge.us/', data
)
34 response
= urllib2
.urlopen(request
)