Close
chino_ryuko said:
新人水一发,顺便有个问题
API里的login怎么在python里实现啊......orz试过Cookiejar然而没用
很简单啊, 当年写的批量上传脚本里的,你看着用

url = 'https://yande.re/post/create.xml'
myfile ={'post[file]':open(image,'rb')}
r = requests.post(url, data = {'user[name]':username,'user[password]':password,'post[tags]':tags}, files=myfile, proxies=proxies)
print(r.text)