import urllib sys params lambda urllib urlencode paste restricted past

1
2
3
import urllib, sys
params = lambda x: urllib.urlencode({'paste[restricted]':'1','paste[authorization]':'burger','paste[body]':x })
sys.stdout.write(urllib.urlopen("http://pastie.org/pastes", params(sys.stdin.read())).geturl()+'\n')