#开源#OneDrive轻量型目录程序+上传工具 -OneList
主机社 1月前

OneDrive轻量型目录程序OneList

开始使用 (测试版,更新中):

开源地址:

https://github.com/MoeClub/OneList

所需依赖

# 自行安装 python3pip3 install tornado


通过下面URL登录 (右键新标签打开)

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&response_type=code&redirect_uri=http://localhost/onedrive-login&response_mode=query&scope=offline_access%20User.Read%20Files.ReadWrite.All

初始化配置文件

# 运行python3 OneList.py# 在浏览器地址栏中获取 code 字段内容# 粘贴并按回车, 每个 code 只能用一次# 此操作将会自动初始化的配置文件

自定义配置文件

# config.json{    // OneDrive 中的某个需要列出的目录    "RootPath": "/Document",    // 网址中的子路径    "SubPath": "/onedrive",    // 目录刷新时间    "FolderRefresh": 900,    // 下载链接刷新时间    "FileRefresh": 1200,    // 认证令牌, 将会自动更新, 保持默认    "RefreshToken": "",    // 这个不用管, 保持默认    "RedirectUri": "http://localhost/onedrive-login"}

运行

python3 app.py# 默认监听 127.0.0.1:5288 , 可在 app.py 中自行更改.

展示

https://moeclub.org/onedrive/

m.PNG

上传工具:

 https://github.com/MoeClub/OneList/tree/master/OneDriveUploader


相关文章推荐:

#开源#ShareList – 易用的网盘,快速挂载 GoogleDrive、OneDrive

#开源#OneIndex 3.0,增加图床功能。

 

作者:Vicer

支持作者:moeclub.org

最新回复 (0)
返回
网站标签