摘要: from PIL import Image import os def get_size(file): # 获取文件大小:KB size = os.path.getsize(file) return size / 1024 def get_outfile(infile, outfile): if o 阅读全文
posted @ 2020-08-21 20:15 阿磊小哥哥呀 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 参考文章:# 知乎爬虫大佬@作者 : 陈祥安# @公众号: Python学习开发 作者github链接:https://github.com/cxapython/chat_aio_spider/commits?author=cxapython 这里说明一下,我这里是付费学习了大佬的一篇文章,然后结合 阅读全文
posted @ 2020-08-21 11:23 阿磊小哥哥呀 阅读(327) 评论(0) 推荐(0) 编辑
摘要: AliLogin(sys.argv[1], sys.argv[2], sys.argv[3]) # 一共三个参数 启动方式 python main.py params1 params2 params3 阅读全文
posted @ 2020-08-21 10:31 阿磊小哥哥呀 阅读(430) 评论(0) 推荐(0) 编辑
摘要: var CryptoJS = require("crypto-js"); var key = "QWER123456"; var iv = "156465465"; function encrypt(text) { return CryptoJS.AES.encrypt(text, CryptoJS 阅读全文
posted @ 2020-08-12 20:36 阿磊小哥哥呀 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 因为业务需求,需要对某个字段进行排序展示,所以自己就用了以下方法 body = { "query": { "bool": { "must": [ { "term": { "group": group_name } } ] } }, "from": (page_num - 1) * 30, # 从什么 阅读全文
posted @ 2020-08-12 10:00 阿磊小哥哥呀 阅读(4917) 评论(0) 推荐(0) 编辑
摘要: # python安装reportlab pip install reportlab -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com参考https://blog.csdn.net/zhezhebie/article/de 阅读全文
posted @ 2020-07-25 09:54 阿磊小哥哥呀 阅读(304) 评论(0) 推荐(0) 编辑
摘要: https://tophub.today/ https://readhub.cn/topics 阅读全文
posted @ 2020-07-24 17:58 阿磊小哥哥呀 阅读(107) 评论(0) 推荐(0) 编辑
摘要: body = { "query": { "term": { "group": { "value": group_name # 根据这个字段更新 } } }, "script": { "lang": "painless", "source": "ctx._source.group=params.gro 阅读全文
posted @ 2020-07-23 18:13 阿磊小哥哥呀 阅读(1207) 评论(0) 推荐(0) 编辑
摘要: reres可以在谷歌应用商店安装,也可以去百度找下载地址 后面也有处理reres使用本地文件无效的问题 安装好后这里有两个参数 第一个是正则匹配你要替换的js路径文件 第二个是本地文件,也可以使用路径文件地址替换 路径文件:http://localhost:8001/demo.js 本地文件:可以参 阅读全文
posted @ 2020-07-15 21:29 阿磊小哥哥呀 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: import base64 str1 = "你好" b = base64.b64encode(str1.encode('utf-8')).decode("utf-8") print(b) print(type(b)) c = base64.b64decode(b.encode("utf-8")).d 阅读全文
posted @ 2020-07-14 12:06 阿磊小哥哥呀 阅读(231) 评论(0) 推荐(0) 编辑