07 2020 档案

摘要:# 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 阿磊小哥哥呀 阅读(324) 评论(0) 推荐(0)
摘要:https://tophub.today/ https://readhub.cn/topics 阅读全文
posted @ 2020-07-24 17:58 阿磊小哥哥呀 阅读(119) 评论(0) 推荐(0)
摘要:body = { "query": { "term": { "group": { "value": group_name # 根据这个字段更新 } } }, "script": { "lang": "painless", "source": "ctx._source.group=params.gro 阅读全文
posted @ 2020-07-23 18:13 阿磊小哥哥呀 阅读(1246) 评论(0) 推荐(0)
摘要:reres可以在谷歌应用商店安装,也可以去百度找下载地址 后面也有处理reres使用本地文件无效的问题 安装好后这里有两个参数 第一个是正则匹配你要替换的js路径文件 第二个是本地文件,也可以使用路径文件地址替换 路径文件:http://localhost:8001/demo.js 本地文件:可以参 阅读全文
posted @ 2020-07-15 21:29 阿磊小哥哥呀 阅读(2087) 评论(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 阿磊小哥哥呀 阅读(241) 评论(0) 推荐(0)
摘要:处理证书只需要一串代码 response = requests.get(url,verify=False) 阅读全文
posted @ 2020-07-14 12:04 阿磊小哥哥呀 阅读(860) 评论(0) 推荐(0)
摘要:第一种方法,添加超时参数 第二种方法: 在es语句中添加超时参数 res = es.search(index=name, body=body, scroll='5m', size=100000, request_timeout=60) 第三种方法: 在连接处配置: 之前写的第二种方法有错误,现在已改 阅读全文
posted @ 2020-07-14 12:00 阿磊小哥哥呀 阅读(2597) 评论(0) 推荐(0)
摘要:// 简单实例 const express = require('express'); const app = express(); const sum = require('./sum'); // 导包,供后面使用,跟python的import类似,这里本地导入 var bodyParser = 阅读全文
posted @ 2020-07-10 22:56 阿磊小哥哥呀 阅读(279) 评论(0) 推荐(0)
摘要:result = await page.evaluate(js, params) 在页面加载之前执行 result = await page.evaluateOnNewDocument(js, params) 阅读全文
posted @ 2020-07-10 22:33 阿磊小哥哥呀 阅读(200) 评论(0) 推荐(0)
摘要:js = "js内容" result = brower.execute_script(js) 阅读全文
posted @ 2020-07-10 22:31 阿磊小哥哥呀 阅读(152) 评论(0) 推荐(0)
摘要:# pip install pyexecjs # 一node.js为引擎 # 检测运行环境 import execjs print(execjs.get().name) 最简单的代码案例 使用eval执行js代码 import execjs e = execjs.eval('a=new Array( 阅读全文
posted @ 2020-07-10 22:24 阿磊小哥哥呀 阅读(654) 评论(0) 推荐(0)
摘要:在file中进入seting中 然后这样就ok了 阅读全文
posted @ 2020-07-10 22:17 阿磊小哥哥呀 阅读(1190) 评论(0) 推荐(0)
摘要:from starlette.responses import FileResponse @app.get("/download/{file_name}") def main(file_name: str): print(file_name) basedir = os.path.abspath(os 阅读全文
posted @ 2020-07-04 17:09 阿磊小哥哥呀 阅读(3571) 评论(0) 推荐(1)
摘要:import datetime import os from flask import Flask, send_from_directory, request from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route 阅读全文
posted @ 2020-07-04 14:06 阿磊小哥哥呀 阅读(959) 评论(0) 推荐(0)