Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0oVicero0/OneList
A simple directory index for OneDrive
https://github.com/0oVicero0/OneList
Last synced: 21 days ago
JSON representation
A simple directory index for OneDrive
- Host: GitHub
- URL: https://github.com/0oVicero0/OneList
- Owner: 0oVicero0
- Created: 2019-02-23T19:43:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:32:46.000Z (over 1 year ago)
- Last Synced: 2024-08-05T17:40:06.566Z (4 months ago)
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 282
- Watchers: 5
- Forks: 126
- Open Issues: 10
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
- awesome-hacking-lists - 0oVicero0/OneList - A simple directory index for OneDrive (Python)
README
# OneList
## Installation
```bash
# apt install python3-pip git redis-servergit clone https://github.com/0oVicero0/OneList.git
cd OneListpip3 install -r requirements.txt
# Get refresh_token --> Setup config
# The in config.json does not need "<" and ">".gunicorn app:app -b 127.0.0.1:5000 -D
```## Configuration
Create a config file named `config.json`
```json
{
"token": "",
"location_path": "/",
"start_directory": "/",
"threads": 3,
"diff_seconds": 480,
"refresh_seconds": 720,
"metadata_cached_seconds": 768,
"structure_cached_seconds": 840
}
```
## Get refresh_token### Method 1 (Auto, Recommend):
#### Get refresh_token> https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&redirect_uri=https://api.moeclub.org/onedrive-login
### Method 2 (Manual):
#### Get auth_token in url
> https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&redirect_uri=http://localhost/onedrive-login
#### Get refresh_token
```bash
code=""
wget --no-check-certificate --post-data="client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&client_secret=h27zG8pr8BNsLU0JbBh5AOznNS5Of5Y540l/koc7048=&grant_type=authorization_code&resource=https://api.office.com/discovery/&redirect_uri=http://localhost/onedrive-login&code=$code" 'https://login.microsoftonline.com/common/oauth2/token' -qO-
```## Demo
> https://moeclub.org/onedrive