import requests def posting(board, thread, comment): values = 'json=1&task=post&board=%s&thread=%s&comment=%s' %(board, thread, comment) response = requests.post(URL, data=values.encode('utf-8')) return response.json()