import curl,pycurl,re,easygui,cStringIO
c=curl.Curl()
c.set_option(pycurl.USERAGENT, "sobaq")
c.set_option(pycurl.TIMEOUT, 5)
c.set_option(pycurl.REFERER, 'http://1...content-available-to-author-only...n.ru/news/add')
#res0=c.get(url="1chan.ru/news/add")

a={}
a["email"]=''
a['homeboard']='anonymous'
a['link']='http://127.0.0.1:80/news/all/'
a['title']='Hide this'
a['text']='hide hide hide hide hide hide hide hide hide '
a['text_full']='sasai kudasai'

c.set_option(pycurl.PROXY,proxies)
res0=c.get(url="1chan.ru/news/add")
if res0.find('input type="checkbox" name="accept"'):
	res1=c.post('1chan.ru/news/add', {'accept':True})
	res1=c.post('1chan.ru/news/add',a)
	f=open('/tmp/res1','w+')
if (res1.find(u'Таймаут')!=-1): continue
if (res1.find('http://1...content-available-to-author-only...n.ru/news/res/')==-1): break
f.write('res1')
f.write(res1)
f.close()