摘要: import cv2 import os # 要提取视频的文件名,隐藏后缀 sourceFileName = '1-21040914325LK' # 在这里把后缀接上 video_path = os.path.join(r"F:\image", sourceFileName+'.mp4') # pr 阅读全文
posted @ 2022-02-08 15:58 长乐未央丫 阅读(158) 评论(0) 推荐(0)
摘要: 在使用selenium需要下载chromedriver 下载地址: http://npm.taobao.org/mirrors/chromedriver/下面是两种登录 一种是用账号密码登录一种是用cookie登录 (但需要上面登录后的cookie) import time from bs4 imp 阅读全文
posted @ 2022-01-22 17:00 长乐未央丫 阅读(300) 评论(0) 推荐(0)
摘要: 1、 连接 MongoDB myClient = MongoClient("mongodb://localhost:27017/") # myClient = MongoClient(host='localhost', port=27017) 2、指定数据库 没有则创建 myDB = myClien 阅读全文
posted @ 2022-01-21 15:35 长乐未央丫 阅读(78) 评论(0) 推荐(0)
摘要: 消费者 import pika # ########################## 消费者 ########################## # 创建连接 credentials = pika.PlainCredentials("guest", "guest") connection = 阅读全文
posted @ 2022-01-12 11:47 长乐未央丫 阅读(83) 评论(0) 推荐(0)
摘要: import time import jwt class Token(object): def __init__(self): pass @classmethod def encrpyt_token(cls, username, uuid, exptime=None, secret=None): " 阅读全文
posted @ 2022-01-12 11:25 长乐未央丫 阅读(423) 评论(0) 推荐(0)
摘要: 1、下载并安装rabbitMQ 下载地址:http://www.rabbitmq.com/download.html 2、安装Erlang 下载地址:http://www.erlang.org/download/otp_win64_17.3.exe 3、启动服务 输入 rabbitmq-plugin 阅读全文
posted @ 2021-12-28 11:28 长乐未央丫 阅读(164) 评论(0) 推荐(0)
摘要: 数据检索功能 # rs = es.search(index="index", doc_type="type", filter_path=["hits.hits._*"]) rs = es.search(index='shang', filter_path=['hits.hits._*'], size 阅读全文
posted @ 2021-12-28 10:46 长乐未央丫 阅读(1142) 评论(0) 推荐(0)
摘要: 建立链接 from elasticsearch import Elasticsearch import json es = Elasticsearch( ['localhost:9200'], # 启动前嗅探es集群服务器 # sniff_on_start=True, # es集群服务器结点连接异常 阅读全文
posted @ 2021-12-27 16:08 长乐未央丫 阅读(308) 评论(0) 推荐(0)
摘要: 一、安装Elasticsearch 直接到官网下载,下载地址:https://www.elastic.co/downloads/elasticsearch 下载成功后,直接去文件夹里面找到/bin/elasticsearch.bat 双击运行就可以启动elasticsearch服务器 然后在浏览器中 阅读全文
posted @ 2021-12-27 15:30 长乐未央丫 阅读(48) 评论(0) 推荐(0)