This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
import sys | |
import mp4 | |
import argparse | |
def write_file(path, content): | |
with open(path, 'wb') as f: | |
f.write(content) | |
def addr(sval): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |