# -*- coding: utf-8 -*-
import requests
import urllib.parse
from time import time
import random

url = 'https://egg.5ch.net/test/read.cgi/jisaku/1572834451/'
server = 'egg'
board = 'jisaku'
thread = '1572879582'
text = 'Monazilla/1.00 JaneStyle/4.00 Windows/6.1.7601 Service Pack 2'

def main():
write(url, server, board, thread, str(random.random())+":::::"+text+":::::"+str(random.random()), "", "")

def write(url, server, board, thread, text, name='', mail=''):
bbscgi = 'https://%s.5ch.net/test/bbs.cgi' % server
print(bbscgi)

param = [
('bbs', board),
('key', thread),
('time', int(time()) - 60),
('FROM',name),
('subject', ''),
('mail', mail),
('MESSAGE', text.encode('cp932')),
('submit', '書き込む'.encode('cp932')),
('yuki', 'akari')
]