UCMS采集接口python推送库,用于python将采集内容推送到UCMS上
Project description
UCMS 采集接口python推送库
UCMS采集接口python推送库,用于python将采集内容推送到UCMS上
UCMS官网: http://uuu.la
使用方法
单文章推送函数
ucms.post(url,data)
成功返示例: {'code': 1, 'msg': '推送成功'}
code 状态码:
1推送成功
2栏目cid参数不能为空
3栏目不存在
4栏目某个字段不存在(msg返回信息中会说明是哪个字段)
5采集接口网址错误
6网络错误或其它未知错误 7网址无法访问
多文章推送
ucms.post_list(url,data)
成功返回示例: {'code': 1, 'successnum': 4}
code 状态码: 1推送成功
successnum 成功推送条数
如果 成功推送条数为0 而实际推送了多条数据,说明推送失败,请用单文章推送测试错误原因
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ucms-1.0.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
ucms-1.0.0-py3-none-any.whl
(3.4 kB
view hashes)