Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

aintyz/OneList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

304 Commits

Repository files navigation

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

Python3版本Bug较多,功能不全. 推荐使用 Written in GoLang 版本

所需依赖

# 自行安装 python3
pip3 install tornado

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

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=78d4dc35-7e46-42c6-9023-2d39314433a5&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/

About

Simple index for onedrive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 82.0%
  • Python 18.0%

AltStyle によって変換されたページ (->オリジナル) /