提交 3e7c3b28 作者: 薛凌堃

天眼查修改来源字段为source

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