GoIndex: Use Google Drive with unlimited capacity to create your own unlimited capacity network disk accessible from mainland China; watch videos online; get direct links to files

888u

Last update at :2024-07-08,Edit by888u

1. GoIndex function Applet deployed on CloudFlare Workers. Google Drive files can be listed as directories and downloaded directly. The traffic goes through CloudFlare, and the network speed is determined by CloudFlare.

Restrictions: Workers have a limit of 100,000 requests per day Google drive download 10T/24h (what the boss said) Google api call restrictions

2. Build GoIndex (1) Installation and deployment plan 1 1. Install rclone locally. 2. Follow the https://rclone.org/drive/ process for authorization. a. Install dependencies

yum -y install unzip fuse fuse-devel

b. Install rclone

curl https://rclone.org/install.sh | sudo bash

c. Google Drive authorization

./rcloneconfig

Enter n, create a new mount, select Google Drive, and fill in as required d. Copy the link above, open it in the browser, and obtain the Google Drive authorization code

3. Execute rclone config file to view the rclone.conf path. Find root_folder_id and refresh_token and record them. 4. Download index.js in https://github.com/donwa/goindex and fill in root and refresh_token 5. Copy the code to CloudFlare for deployment.

(2) Installation and deployment plan 2 The author will not record refresh_token, but in order to avoid disputes, it is recommended that qualified students use option 1 for deployment. 1. Visit https://install.gd.workers.dev/ 2. After authorization and authentication, the deployment code is generated. 3. Copy the code to CloudFlare for deployment.

3. Check the Google Drive directory ID and bind your own domain name 1. About Google Drive directory ID Open the team disk (or folder or folder shared by others) and look at the address bar. https://drive.google.com/drive/folders/{The code behind this is the ID} Leave blank for the root directory.

2. Bind domain name in CloudFlare Workers a. First let the domain name that needs to be bound pass cf and point to ip at will. b. Add Route

Reprinted from: https://www.hostloc.com/thread-582858-1-1.html, https://github.com/donwa/goindex

4. Add code to provide online playback function for GoIndex 1. Put the code between .

2. Use VLC media player and paste the download link directly into the network stream to watch online.

Reprinted from: https://www.hostloc.com/thread-583124-1-1.html

5. Google Drive (including transcoding) + lanzou + 19 direct link tool cf-worker version

Use /link/file id: automatic analysis or /gd|lanzou|19/fileid

Default cf transfer download

Optional parameter ?output= json: Return json format redirect: Jump to the original link to download after parsing

gd applies additional parameters ?output=media. Media files can be played in the transcoding mode of gd.

Project address: https://github.com/reruin/workers/blob/master/link/index.js

Recommended site search: US host rental, domain name registration network, free cloud host, vps virtual server, registration number query, domain name free registration 0 yuan registration, no registration, US vps server, https proxy ip, virtual host server, < /p>

GoIndex: Use Google Drive with unlimited capacity to create your own unlimited capacity network disk accessible from mainland China; watch videos online; get direct links to files

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码