会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
长乐未央
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
2022年2月8日
提取视频的每一帧保存到指定文件夹
摘要: 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)
2022年1月22日
python 操作selenium 简单模拟淘宝登录
摘要: 在使用selenium需要下载chromedriver 下载地址: http://npm.taobao.org/mirrors/chromedriver/下面是两种登录 一种是用账号密码登录一种是用cookie登录 (但需要上面登录后的cookie) import time from bs4 imp
阅读全文
posted @ 2022-01-22 17:00 长乐未央丫
阅读(300)
评论(0)
推荐(0)
2022年1月21日
Python操作MongoDB
摘要: 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)
2022年1月12日
Python操作RabbitMQ
摘要: 消费者 import pika # ########################## 消费者 ########################## # 创建连接 credentials = pika.PlainCredentials("guest", "guest") connection =
阅读全文
posted @ 2022-01-12 11:47 长乐未央丫
阅读(83)
评论(0)
推荐(0)
JWT加密解密
摘要: 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)
2021年12月28日
将rabbitMQ生产的消息存储到mongoDB
摘要: 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)
Python ES查询
摘要: 数据检索功能 # 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)
2021年12月27日
python操作ES
摘要: 建立链接 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下载安装以及与可视化工具的关联
摘要: 一、安装Elasticsearch 直接到官网下载,下载地址:https://www.elastic.co/downloads/elasticsearch 下载成功后,直接去文件夹里面找到/bin/elasticsearch.bat 双击运行就可以启动elasticsearch服务器 然后在浏览器中
阅读全文
posted @ 2021-12-27 15:30 长乐未央丫
阅读(48)
评论(0)
推荐(0)
上一页
1
2
公告