上传接口
<h4>上传接口</h4>
<pre><code class="language-python">url = 'http://192.168.1.17:18080/demo/upload'
body = {
"title": title1, # 新闻名
"source": laiyuan, # 来源
"hangye": ui, # 行业
"time": str(time3), # 时间
"province": sheng,
"context": str(ppzw).replace("\n"," ")
}
files = {'file': open(lj1, 'rb')}</code></pre>
<p>后期计划已渲染正文的方式进行写库,备用方式都已经做好</p>