GoIndex:利用Google Drive不限容量,创建自己的国内可访问不限容量网盘;并在线看视频;获取文件直链

一、GoIndex功能 部署在 CloudFlare Workers的小程序。 可以将 Google Drive 文件以目录形式列出,并直连下载。 流量走 CloudFlare ,网速由 CloudFlare 决定。

限制: wokers一天10万请求限制 google drive 下载10T/24h(大佬说的) google api 调用限制

二、搭建GoIndex (一)安装部署方案1 1、在本地安装 rclone 2、按照 https://rclone.org/drive/ 流程进行授权。 a、安装依赖

yum -y install unzip fuse fuse-devel

b、安装rclone

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

c、 Google Drive授权

./rclone config

输入 n ,新建挂载,选择Google Drive,按要求填写 d、复制上面的链接,到浏览器打开,获取Google Drive授权码

3、执行 rclone config file 查看 rclone.conf 路径。找到root_folder_id和refresh_token记录下来。 4、下载 https://github.com/donwa/goindex 中的 index.js 并填入 root 和 refresh_token 5、复制代码 到 CloudFlare 部署。

(二)安装部署方案2 作者不会记录refresh_token,但为避免纠纷,建议有条件的同学使用方案1进行部署 1、访问https://install.gd.workers.dev/ 2、授权认证后,生成部署代码。 3、复制代码 到 CloudFlare 部署。

三、查看Google Drive目录ID,并绑定自己的域名 1、关于Google Drive目录ID 打开团队盘(或文件夹或别人共享的文件夹),看地址栏。 https://drive.google.com/drive/folders/{这后面一堆代码就是id} 留空是根目录。

2、在CloudFlare Workers中绑定域名 a、先让需要绑定的域名通过cf,指向ip随意。 b、添加Route

转自:https://www.hostloc.com/thread-582858-1-1.html、https://github.com/donwa/goindex

四、添加代码,为GoIndex提供在线播放功能 1、把代码放入之间即可。

            $(function () {         $('.file a').each(function() {           $(this).on('click', function() {               if(this.href.lastIndexOf(".mp4") > 1) {                 layer.open({                   type: 1,                   title: decodeURI(this.href.substring(this.href.lastIndexOf("/") + 1, this.href.length)),                   shadeClose: true,                   shade: 0.8,                   area: ['100%', '100%'],                   content: ''                 });                 return false;               }           });       });     });    

2、使用VLC media player播放器,将下载链接直接粘贴进网络串流,可在线看。

转自:https://www.hostloc.com/thread-583124-1-1.html

五、Google Drive(含转码) + lanzou + 19 直链工具 cf-worker 版

使用 /link/文件id:自动分析 或者 /gd|lanzou|19/文件id

默认cf中转下载

可选参数 ?output= json: 返回 json 格式 redirect:解析后跳转至原始链接下载

gd适用额外参数 ?output=media 媒体文件适用gd的转码模式播放。

项目地址:https://github.com/reruin/workers/blob/master/link/index.js

推荐站内搜索:美国虚拟主机、日本服务器网站、备案域名查询、永久免费空间域名空间、ip反查域名、me域名、服务器托管价格、美国主机推荐、已经备案的域名、