提交 3e7c3b28 作者: 薛凌堃

天眼查修改来源字段为source

上级 512304e0
......@@ -176,15 +176,16 @@ def beinWork(tyc_code, social_code,start_time):
pass
continue
try:
insert_sql = '''insert into brpa_source_article(social_credit_code,source_address,origin,type,publish_time,create_time) values(%s,%s,%s,%s,%s,now())'''
insert_sql = '''insert into brpa_source_article(social_credit_code,source_address,origin,type,publish_time,content,create_time) values(%s,%s,%s,%s,%s,%s,now())'''
# 动态信息列表
up_okCount = up_okCount + 1
list_info = [
social_code,
link,
'天眼查',
f'天眼查-{source}',
'2',
time_format
time_format,
content[:500]
]
cursor_.execute(insert_sql, tuple(list_info))
cnx_.commit()
......@@ -202,7 +203,7 @@ def beinWork(tyc_code, social_code,start_time):
'id': '',
'keyWords': '',
'lang': 'zh',
'origin': '天眼查',
'origin': source,
'publishDate': time_format,
'sid': '1684032033495392257',
'sourceAddress': link, # 原文链接
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论