20240609
This commit is contained in:
1 parent
94984bf7a6
commit
76487f10e8
4 files changed
+3971
-253
No files matched your search
+15
-118
@@ -23,10 +23,10 @@
|
||||
"mydb = myclient[\"baogao\"]\n",
|
||||
"mycol = mydb[\"place\"]\n",
|
||||
"\n",
|
||||
"place_id = 571315\n",
|
||||
"place_code = \"10\"\n",
|
||||
"dw_name = \"中国石油青海油田勘探事业部\"\n",
|
||||
"dw_jc = \"青海油田勘探事业部\"\n",
|
||||
"place_id = 100615\n",
|
||||
"place_code = \"11\"\n",
|
||||
"dw_name = \"中安联合公司\"\n",
|
||||
"dw_jc = \"中安联合公司\"\n",
|
||||
"myquery = { \"id\": place_id }\n",
|
||||
"num = mycol.count_documents(myquery)\n",
|
||||
"if num>0:\n",
|
||||
@@ -109,56 +109,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": null,
|
||||
"id": "5f665c0f-8d30-4759-b7f8-fb7e13b98efa",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-05-21T07:50:22.591936Z",
|
||||
"iopub.status.busy": "2024-05-21T07:50:22.591216Z",
|
||||
"iopub.status.idle": "2024-05-21T07:50:22.615055Z",
|
||||
"shell.execute_reply": "2024-05-21T07:50:22.614130Z",
|
||||
"shell.execute_reply.started": "2024-05-21T07:50:22.591865Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"1 18993713107 0040-李想.pdf\n",
|
||||
"2 18993711277 0037-姜太亮.pdf\n",
|
||||
"3 18909376963 0005-范朝峰.pdf\n",
|
||||
"4 18993711151 0039-燕宇飞.pdf\n",
|
||||
"5 18993729661 0003-于航.pdf\n",
|
||||
"6 18997372608 0024-王永林.pdf\n",
|
||||
"7 18997377335 0047-付艳双.pdf\n",
|
||||
"8 18993710970 0042-张长好.pdf\n",
|
||||
"9 18993710993 0011-黄叶秋.pdf\n",
|
||||
"10 18993727823 0020-李伟.pdf\n",
|
||||
"11 18997372109 0061-罗勇.pdf\n",
|
||||
"12 18997374506 0044-王福国.pdf\n",
|
||||
"13 18993710963 0071-李强.pdf\n",
|
||||
"14 18093715987 0062-张伟.pdf\n",
|
||||
"15 18997397669 0069-杨鹏.pdf\n",
|
||||
"16 18993714097 0033-徐涛.pdf\n",
|
||||
"17 18093715481 0036-刘雪娇.pdf\n",
|
||||
"18 18993710973 0055-张庆尧.pdf\n",
|
||||
"19 18997372106 0051-袁贵德.pdf\n",
|
||||
"20 18993714936 0064-张狄杰.pdf\n",
|
||||
"21 18993724221 0007-袁丽萍.pdf\n",
|
||||
"22 18993710972 0035-许刚.pdf\n",
|
||||
"23 18993710998 0009-彭晓群.pdf\n",
|
||||
"24 18997375563 0046-张海宁.pdf\n",
|
||||
"25 18993722556 0068-马丽娟.pdf\n",
|
||||
"26 18993710256 0043-高雪峰.pdf\n",
|
||||
"27 18993710971 0041-邢超.pdf\n",
|
||||
"28 18993710985 0067-管斌.pdf\n",
|
||||
"29 18993728737 0050-李文研.pdf\n",
|
||||
"30 18909376562 0018-王海红.pdf\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from tencentcloud.common import credential\n",
|
||||
"from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\n",
|
||||
@@ -172,8 +128,8 @@
|
||||
"mydb = myclient[\"baogao\"]\n",
|
||||
"mycol = mydb[\"pdf\"]\n",
|
||||
"\n",
|
||||
"dw_jc = \"青海油田勘探事业部测试者\"\n",
|
||||
"filename = 'data/青海2024.json'\n",
|
||||
"dw_jc = \"中安联合测试者\"\n",
|
||||
"filename = 'data/中安联合.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"dict2 = {}\n",
|
||||
@@ -233,56 +189,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": null,
|
||||
"id": "4b2b5d76-665f-4dfe-bbd3-5c80abd8c3e3",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-05-21T07:51:45.019283Z",
|
||||
"iopub.status.busy": "2024-05-21T07:51:45.018719Z",
|
||||
"iopub.status.idle": "2024-05-21T07:51:51.465933Z",
|
||||
"shell.execute_reply": "2024-05-21T07:51:51.464380Z",
|
||||
"shell.execute_reply.started": "2024-05-21T07:51:45.019227Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"18993713107 send success\n",
|
||||
"18993711277 send success\n",
|
||||
"18909376963 send success\n",
|
||||
"18993711151 send success\n",
|
||||
"18993729661 send success\n",
|
||||
"18997372608 send success\n",
|
||||
"18997377335 send success\n",
|
||||
"18993710970 send success\n",
|
||||
"18993710993 send success\n",
|
||||
"18993727823 send success\n",
|
||||
"18997372109 send success\n",
|
||||
"18997374506 send success\n",
|
||||
"18993710963 send success\n",
|
||||
"18093715987 send success\n",
|
||||
"18997397669 send success\n",
|
||||
"18993714097 send success\n",
|
||||
"18093715481 send success\n",
|
||||
"18993710973 send success\n",
|
||||
"18997372106 send success\n",
|
||||
"18993714936 send success\n",
|
||||
"18993724221 send success\n",
|
||||
"18993710972 send success\n",
|
||||
"18993710998 send success\n",
|
||||
"18997375563 send success\n",
|
||||
"18993722556 send success\n",
|
||||
"18993710256 send success\n",
|
||||
"18993710971 send success\n",
|
||||
"18993710985 send success\n",
|
||||
"18993728737 send success\n",
|
||||
"18909376562 send success\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from tencentcloud.common import credential\n",
|
||||
"from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\n",
|
||||
@@ -296,7 +208,7 @@
|
||||
"mydb = myclient[\"baogao\"]\n",
|
||||
"mycol = mydb[\"pdf\"]\n",
|
||||
"\n",
|
||||
"filename = 'data/青海2024.json'\n",
|
||||
"filename = 'data/中安联合.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"dict2 = {}\n",
|
||||
@@ -309,7 +221,7 @@
|
||||
" else:\n",
|
||||
" print('no phone')\n",
|
||||
"#print(dict2)\n",
|
||||
"dw_jc = \"青海油田勘探事业部测试者\"\n",
|
||||
"dw_jc = \"中安联合测试者\"\n",
|
||||
"#dict2 = {375: {'phone': '13793180751', 'code': '0379208'}}\n",
|
||||
"for k, v in dict2.items():\n",
|
||||
" phone = '+86'+v['phone']\n",
|
||||
@@ -365,27 +277,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": null,
|
||||
"id": "25a269c3-758f-4e79-ae6d-a6e6f161d64b",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2024-05-21T07:49:49.553753Z",
|
||||
"iopub.status.busy": "2024-05-21T07:49:49.553036Z",
|
||||
"iopub.status.idle": "2024-05-21T07:49:49.771504Z",
|
||||
"shell.execute_reply": "2024-05-21T07:49:49.769857Z",
|
||||
"shell.execute_reply.started": "2024-05-21T07:49:49.553688Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"+8613793180751 send success\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from tencentcloud.common import credential\n",
|
||||
"from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\n",
|
||||
@@ -450,7 +347,7 @@
|
||||
"mydb = myclient[\"baogao\"]\n",
|
||||
"mycol = mydb[\"pdf\"]\n",
|
||||
"\n",
|
||||
"filename = 'data/世纪花园人员信息.json'\n",
|
||||
"filename = 'data/中安联合.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"dict2 = {}\n",
|
||||
|
||||
Reference in new issue
Block a user