上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWar 阅读全文
posted @ 2020-04-23 09:52 阿磊小哥哥呀 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://zhuanlan.zhihu.com/p/88122986 import backoff import time @backoff.on_predicate(backoff.fibo) def test2(): print("time is {}, retry...".fo 阅读全文
posted @ 2020-04-22 16:46 阿磊小哥哥呀 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: import logging from logging import handlers class Logger(object): level_relations = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging 阅读全文
posted @ 2020-04-22 16:40 阿磊小哥哥呀 阅读(1515) 评论(0) 推荐(0) 编辑
摘要: you get u url u 是视频的详细信息及地址 json 是详细信息格式化 i是视频的详细信息没有地址 url是视频地址,不是视频加密的地址 以上是cmd命令行 转化为MP4格式:you get itag=18 '视频地址URL' 至于python怎么获取结果可以参考: https://ww 阅读全文
posted @ 2020-04-20 10:35 阿磊小哥哥呀 阅读(590) 评论(0) 推荐(0) 编辑
摘要: res = os.popen("cmd命令") tempstream = res._stream print(tempstream.buffer.read().decode(encoding='utf 8')) s = tempstream.buffer.read().decode(encoding 阅读全文
posted @ 2020-04-20 10:32 阿磊小哥哥呀 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: 导入pymongo并选择要操作的集合 数据库和集合乜有会自动创建 from pymongo import MongoClient client = MongoClient(host,port) collection = client[db名][集合名] 添加一条数据 ret = collection 阅读全文
posted @ 2020-04-17 09:17 阿磊小哥哥呀 阅读(847) 评论(0) 推荐(0) 编辑
摘要: """ https://fastapi.tiangolo.com/project-generation/cors中间件处理跨域 """ from fastapi import FastAPI from pydantic import BaseModel from starlette.middlewa 阅读全文
posted @ 2020-04-17 09:15 阿磊小哥哥呀 阅读(5850) 评论(0) 推荐(0) 编辑
摘要: #打包 pip freeze >requirements.txt # 安装 pip install -r requirements.txt 阅读全文
posted @ 2020-04-16 13:29 阿磊小哥哥呀 阅读(622) 评论(0) 推荐(0) 编辑
摘要: def save_data(item, sheet): """ 数据保存 :param item: 数据 :param sheet: sheet名 :return: """ dfscores = pd.DataFrame(item) # 写入数据 encoding="utf-8-sig" 看情况而用 阅读全文
posted @ 2020-04-16 09:40 阿磊小哥哥呀 阅读(2059) 评论(0) 推荐(0) 编辑
摘要: def save_data(item, sheet): """ 数据保存 :param item: 数据 :param sheet: sheet名 :return: """ dfscores = pd.DataFrame(item) # 写入数据 encoding="utf-8-sig" 看情况而用 阅读全文
posted @ 2020-04-13 17:58 阿磊小哥哥呀 阅读(619) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页