import requests
import zlib
URL = 'https://tio.run/cgi-bin/run/api/'
def sendreq(code, inputs, args):
session = requests.Session()
data = 'Vlang\u00001\u0000jelly\u0000F.code.tio\u00001\u0000+F.input.tio\u00000\u0000Vargs\u00002\u000020\u000010\u0000R'
print(repr(data))
test = session.post(URL, data, verify=True, cookies=requests.utils.dict_from_cookiejar(session.cookies))
return zlib.decompress(zlib.compress(bytes(test.text, 'utf-8'), 9)[2:-4], -zlib.MAX_WBITS)
if __name__ == '__main__':