python
叹一曲当时只道是寻常
这个作者很懒,什么都没留下…
展开
-
selenium连接已打开的Firefox浏览器
selenium连接已经打开的firefox浏览器原创 2022-12-15 17:10:05 · 2124 阅读 · 2 评论 -
python对接百度通用ocr
前言仅用于个人python学习记录,百度有官方的模块pip install baidu-aipaccess_token获取略代码import requestsimport base64import jsonimport loggingfrom enum import Enum, uniqueimport keyring@uniqueclass OcrType(Enum): #标准版 STANDARD_BASIC = 1 #标准版含位置 STAND原创 2021-11-18 17:48:54 · 784 阅读 · 0 评论 -
python接入钉钉自定义机器人
官网文档自定义机器人接入自定义机器人需要在钉钉pc端进行操作,获得webhook地址及secretimport requestsimport jsonimport timeimport hmacimport hashlibimport base64import urllib.parseclass DingTalkBot: #text link markdown ActionCard FeedCard #https://developers.dingtalk.com/d原创 2021-11-15 14:36:57 · 773 阅读 · 0 评论 -
python拼接sql语句
python拼接生成sql语句小工具,适用自动生成简单sql的场景def where_condition(whereInfo:dict): ''' 拼接where条件 @whereInfo where条件 ''' sql = "" whereConditionList = whereInfo.keys() if(len(whereConditionList)>0): sql = " where" for col原创 2021-09-08 16:46:35 · 3888 阅读 · 1 评论