Pastebin

Paste #396: paste

< previous paste - next paste>

Pasted by razor

Download View as text

#!/usr/bin/python

import urllib
import urllib2

url = 'http://thomasdamgaard.dk/p/store_paste.php'

fields = ('sender_name', 'paste_title', 'paste')

data = dict()
for f in fields:
    data[f] = raw_input(f+"? ")

data = urllib.urlencode(data)

req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
print response.read()

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.