提交 3b8fce47 作者: 刘伟刚

中国政府采购网修改代码提交2

上级 f424eb1b
...@@ -141,8 +141,8 @@ def runspider(keyword): ...@@ -141,8 +141,8 @@ def runspider(keyword):
'source':'中国政府采购网', 'source':'中国政府采购网',
'publishtime':publishtime, 'publishtime':publishtime,
'detailurl':detailurl, 'detailurl':detailurl,
'mapType':'1', #是否有结构化数据 'ynStructure':'1', #1:是结构化 0:非结构化
'mapmsg':mapmsgList, #结构化数据 'structuredData':mapmsgList, #结构化数据
} }
processitem=getProcessitem(detailmsg) processitem=getProcessitem(detailmsg)
sendkafka(processitem) sendkafka(processitem)
...@@ -165,8 +165,8 @@ def getProcessitem(bdetail): ...@@ -165,8 +165,8 @@ def getProcessitem(bdetail):
"origin":bdetail['source'], "origin":bdetail['source'],
"publishDate":bdetail['publishtime'], "publishDate":bdetail['publishtime'],
"sourceAddress":bdetail['detailurl'], "sourceAddress":bdetail['detailurl'],
"mapType":bdetail['mapType'], "ynStructure":bdetail['ynStructure'],
"mapmsg":bdetail['mapmsg'], "structuredData":bdetail['structuredData'],
"createDate":nowDate "createDate":nowDate
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论