fix: 修复中国民族报每次采集从头开始采集问题
This commit is contained in:
parent
13c7a3f419
commit
4410d87909
@ -30,7 +30,7 @@ collection = db['zhongguominzubao']
|
||||
async def main():
|
||||
collection_names = await db.list_collection_names()
|
||||
# 判断数据表是否存在
|
||||
if "zhongguomizubao" not in collection_names:
|
||||
if "zhongguominzubao" not in collection_names:
|
||||
# 如果不存在,则从2017年9月开始爬取
|
||||
print("中国民族数据表不存在,开始采集!")
|
||||
await getData(start_date, end_date)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user