Total Pageviews

Wednesday 15 June 2022

Google-Drive-Online-Decompression

 使用Google Colab对Google Drive里面的压缩包进行操作,支持7z和rar以及zip等格式,引擎采用unrar和unzip以及7z。

 V1.1

本着就方便大家的想法,写了一个在线解压。省的大家上传GD的时候很麻烦,小文件数量多上传很慢。大文件就比较快,在TG群又看大家好多人说资源都要解压版,所以就随便写了一个这个。

可以解压市面上百分之90%的压缩格式。压缩功能还在考虑,看大家需求吧,如果要的话我在写。

如果好用的话麻烦点一下右上角的Start 谢谢

使用方法:

  1. 代码拖到本地,打开Google Colab官网: https://colab.research.google.com/
git clone https://github.com/Wilnk/Google-Drive-Online-Decompression
  1. 打开文件-上传(Google_Drive_Online_Decompression.ipynb) 提示登入 登入即可。

    avatar

  2. ​ 连接Google Colab登入Google账号 绑定Google Drive授权

    avatar

  3. 获取Google Drive 的信息

    avatar

  4. 获取你要解压的文件(文件夹)路径

    直接复制路径即可

    avatar

  5. 按你的需求填入相对应的信息 ,然后运行即可。

Demo

avatar

avatar

注意事项:

1.如果因为魔法不行的 中途断流了 而导致解压关闭中断的。你直接重新运行即可,解压会自动覆盖写入。

2.如果运行中出现问题请发Issues上。

3.Google 的Colab有一个空间限制,用户分配空间就是100G左右。所以如果是强行解压超过100G的文件(比如500G的压缩文件),就会出现报错 “No such file or directory” 因为内存不够,所以无法读取。

4.尽量保持网络畅通,有些人不好的魔法就尽量换一个好一点的魔法。

5.绝大部分都能解压,我是测试过了才推上去的,很多时候都是浏览器问题!建议用谷浏览器(启用无痕模式)。

6.Colab建议采用TPU模式。因为GPU模式才分配硬盘68.4G,而TPU模式可以分配硬盘107.8G。(更改方法:Colab主界面--代码执行程序--更改运行时类型--TPU--保存)

7.遇到问题了先看看报错,错误代码复制粘贴Google或者百度搜索看看是什么问题,英文看不懂就翻译一下。如果不是自身的问题就试试通用解压和查看,还不行再关了浏览器再重新跑一遍,因为是在线解压,很吃网络。稍微断流什么的就报错。如果还是不行依旧报错,那么就请你到Issues上提交你的错误信息。

7.28更新

添加了Google Colab 突破90分钟自动断开机制。

from https://github.com/Wilnk/Google-Drive-Online-Decompression 

------

Simple notebook to stream torrent files to Google Drive using Google Colab. 

This whole repo is against Google Colab policy and you shouldn't be using it.

Why are hardware resources such as T4 GPUs not available to me? The best available hardware is prioritized for users who use Colaboratory interactively rather than for long-running computations. Users who use Colaboratory for long-running computations may be temporarily restricted in the type of hardware made available to them, and/or the duration that the hardware can be used for. We encourage users with high computational needs to use Colaboratory’s UI with a local runtime. Please note that using Colaboratory for cryptocurrency mining is disallowed entirely, and may result in being banned from using Colab altogether.

Source: https://research.google.com/colaboratory/faq.html

Torrent To Google Drive Downloader

Simple notebook to stream torrent files to Google Drive using Google Colab.

Open In Colab

Tutorial

Click the badge which says 'Open in Colab' and follow directions there.

What is the purpose of it?

  1. Because of Google Servers' speed, I downloaded 12GB of a file and the average speed was 60MBPS.
  2. Because it is in the cloud, by that I mean I can access it anywhere on my phone, tablet, etc without copying files around

Frequently Asked Questions

  1. How to get more disk space:

    Go to Runtime -> Change Runtime and give GPU as the Hardware Accelerator.
    You will get around 384GB to download any torrent you want.

  2. Downloading missing files without re-downloading whole torrent: If somehow some files are missing try to re-download torrent. Fastresume will check files.

For more questions check existing issues or open a new one

from https://github.com/FKLC/Torrent-To-Google-Drive-Downloader

 

 

No comments:

Post a Comment