Metadata-Version: 2.1
Name: ucms
Version: 1.0.0
Summary: UCMS采集接口python推送库,用于python将采集内容推送到UCMS上
Home-page: https://github.com/dayudada/ucms_caiji_python
Author: dayudada
Author-email: dayudada@foxmail.com
License: MIT Licence
Keywords: ucms
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests

# 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 而实际推送了多条数据，说明推送失败，请用单文章推送测试错误原因

