canary_be/getDb.py
2020-08-04 15:28:17 +08:00

125 lines
18 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from pymongo import MongoClient
import re
import json
import os
import time
# 主环境 (生产环境为production开发环境为development)
setting = 'development'
# 获取数据集
def col(arg):
conn = MongoClient('mongodb://ccb:wL2wG2aD6aI1@mongo:27017/ccb')
if setting == 'development':
arg += '_test'
if arg == 'user_info':
return conn.ccb.user_info
elif arg == 'user_info_test':
return conn.ccb.user_info_test
else:
return False
def getUserInfo():
user_list = []
try:
for i in col('user_info').find({},{"_id":0}):
if i.get('_id'):
i.pop('_id')
user_list.append(i)
return (user_list, 200)
except Exception as e:
print(e)
return ('数据库查询失败', 111)
def writeData2Json():
content = getUserInfo()
if content[-1] != 200:
return
content = json.dumps(content[0]).encode()
# 获取当前绝对地址
path = os.path.abspath('.')
# 拼接新地址
path = os.path.join(path,'data')
# 创建文件夹
os.mkdir(path)
folder_url = path
file_url = os.path.join(folder_url,'data.json')
with open(file_url, 'wb') as f:
f.write(content)
time.sleep(1)
print('写入成功')
def clear():
col('user_info').remove({})
# 插入一个新的用户
def insertUser(data):
try:
col('user_info').insert_one(data)
except Exception as e:
# 插入失败
return {'errcode': 103, 'errmsg': '新用户插入失败'}
return {'errcode': 200, 'errmsg': '新用户插入成功'}
user_list = [
{
"active": True,
"password": "/3pLO7ZGxs3/aZc4c/iCOg==",
"mail_addr": "531347509@qq.com",
"codebook": "",
"update_time": 1582296754436,
"uuid": "2020022122523278"
},
{
"active": True,
"password": "418VcZRUba306D1v+K+8ew==",
"mail_addr": "1362604986@qq.com",
"codebook": "",
"update_time": 1582364460140,
"uuid": "20200222174100010"
},
{
"active": True,
"password": "5iKuM+zMqbZTTB27mm9yAg==",
"mail_addr": "1597291489@qq.com",
"codebook": "",
"update_time": 1582703170957,
"uuid": "2020022615461093"
},
{
"active": True,
"codebook": "vD6yeixdD2VlNduZOCli9OzfOpsJL8O/cv4bsKeR7Flk5+W0KQy4oVl0iUNqtMNHSvhCeVtAO5PC1DfLbk6eTrktevo6m0Ab2H7xMlB3cRGLSyl+vohRT1jwHOb98xh97w9D34ZvLVzj/lSzFYNXG7m0JkAAq/TiTu9ZGeM1TMOIeT6j6UkoVEBG77AHHBbGPAMbE9DdaD6u31WAN2yeJQ==",
"mail_addr": "cyw13089178067@outlook.com",
"password": "u52FaDeXCxxTEJnGIJN3cA==",
"update_time": 1585279034908,
"uuid": "2020032711111912"
},
{
"active": True,
"codebook": "1aTyzjHbSCCgFvgMcufJRYA1QojFQwwuToukZ8CzcwKwyuUtZoTV5Z6YfzoDSZ2tb4uRzPnHYtrt7OJZ7IyPBOeUlfI82d52ubwes5l77tx5uT7IIBDBzuU/y2sxKf1gfZtKRGyws7iv150oCZMqwTCHmGQZ+g+gqzGP48Pwme2o3vmQF/Au+cMmv217JTymwhJmKpBS/OeYRrJOV+xmshsd2xReppKP7MjiEWIxk9OgcLPaZAjDK+LgMUAqjjjIai+eGyqRe5B4FoPtznEiSGLHeIc79nVeGPT0hrXE1pmE/lP632vk1cPP7zDmWVpRhUA2FI14IBnojc1PYv0U5A4hr22D+cRN7GPFDLzG6cmSsiEUkaVFQiP57DqmKfXdNrnH4ZNly6ZHCGb/TozPhasQB2vFjV/MM0QgUqXjMhLWUPxE/M4yYQ9dU+JBH1wS4HU973LfP90Gmyq7EY0+O3EsXv+FJKpS5fXxMxHkRJ1DWe41qXnGaUotiyngG5RSM/0cCndHbnva+Ol1YdCyWXGUjlH4vpwB+9YDMdG+aKxHWtAq6PX795OPNkjJwzu33d9xG0MVnIqJ4hTuBYt2oE+O43VvLO3x7ZaYVczXLtJarkTEXH2ZVq+tA5v1InXcai+eGyqRe5B4FoPtznEiSPEjlHINmG5px+iqcCNQOA84os4zt6mOvtR81gRZXLIxMIeYZBn6D6CrMY/jw/CZ7aje+ZAX8C75wya/bXslPKYcO0pIMACwiZpO2eHgrFrYP/QMijhDpLbjVRNzaElvBU6pfvKHWFNkHja9jkr1p2xdpXXYxVyO/eetG6uW0uThj/DY1hNWxZ/HQ+O45nHNsBeKNO+mKffvy+QHUQB2dNYL8zQYQfXUI0AJTtic8qxfcZSOUfi+nAH71gMx0b5orB5gCn53qlB/LBg7c8Jq6w7s4pJ24JqMuT7h3LmnjJtycaq+TzgAmZH7MTTkNKkO/JmmADZWJ1bdX4LCkMdAMMbnlJXyPNnedrm8HrOZe+7cebk+yCAQwc7lP8trMSn9YFNEK6CFT+ozxmrz4ksA1YpQOdsRsPPCKxmndjxJqgYY3+MQal9jtGQr9WtAGxsQV+UN/tbi5unwpmvCDDzW5fIK3NSkQta86baUZngxxqSOWx1qVQkQ0z2lWUXj7qVCh/Bpn+VNPsEGT+qSr81Hv4RrNmBwU/9Cl6ElKXSEiMhajsKVWXveUMZ+k7IRYInY3qPA/hdbwjxKfnrlsZ3wainH+uN0tUJPFp4rK2RHOhtGA7jAgt0v0t6Yws8lha8yFgTNFziJJLif+RQEHKEeb+uGxiRvs48xhggUPuFuDtUqI6xcAtIkWMMcYExxOCM6x+dbGbKFdGLri14qYeYxFPYgHJeJv0YW3+WEczmwJqWULsUR1aZVm9L3cn22881DIcCAjjlhEQb6DEFaJW5sq6lQOdsRsPPCKxmndjxJqgYY3+MQal9jtGQr9WtAGxsQV2vV4rcuuLYdsMYAKqMjAs3FmrOwbOlYL5C6xyC+EjjIjtXbnYZCa1lnflv0hvO+HMy0bvXeTJQnDU7YSssghDyAeCZYNWwe+HNT0V+h+A5fuweiJ6gvwNbhXUQpxRHzYj6nlwS5jOZwCFyu9SVAE5WBNjz+wUFLQTN9vclygiHWPKtJ+3/bmhiqQ89BoAnoLw==",
"mail_addr": "1428255238@qq.com",
"password": "Qtenmdk6Y6748iFGLucurg==",
"update_time": 1585475735916,
"uuid": "2020022122560528"
},
{
"active": True,
"codebook": "Ck4p/KsVHRARrmaqHyYx9L6vL1u32eqwE1hpzFmCngv5Syvk8xJvTPJ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7cwseHrknCXc+CEmxNszfkGdHUjTYN7/nkbDyZmxb4O9Gy7P9xu8Ii3yFC1Omoty47/Rp6nYIts9VqXvUEBjmuYXRx87DAdPgkkcOuddQ/iKfNxIQGPo3Gbu5RS5rtYmQeRqqDT2vviWtACyjQh/bzVsy3Zk8VoNBQ6YgQvFUWsVls6kQ8p9FZ56r47fI+ZyUnaKiMhN+4S3/QbxIk8eE1y+uUhwUuDfMBct0nja370EOn5wkMzXPqQii2035Ww",
"mail_addr": "1144131090@qq.com",
"password": "hrtJQ87gz8Na7nqLTWfmQg==",
"update_time": 1585575411354,
"uuid": "2020022119314324"
}
]
def insertData():
fail_list = []
clear()
for user in user_list:
insert_res = insertUser(user)
if insert_res['errcode'] != 200:
fail_list.append(user)
for i in fail_list:
print(i)
print('ok')
insertData()