├── Google_Drive_Online_Decompression.ipynb ├── LICENSE ├── google_drive_online_decompression.py ├── img ├── 20200717120303.png ├── 20200717120621.png ├── 20200717120656.png ├── 20200717122938.png ├── 20200717123359.png └── 20200717124553.png └── readme.md /Google_Drive_Online_Decompression.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "Google_Drive_Online_Decompression.ipynb", 7 | "provenance": [], 8 | "collapsed_sections": [], 9 | "toc_visible": true 10 | }, 11 | "kernelspec": { 12 | "name": "python3", 13 | "display_name": "Python 3" 14 | } 15 | }, 16 | "cells": [ 17 | { 18 | "cell_type": "markdown", 19 | "metadata": { 20 | "id": "V2TJGw35rxVm", 21 | "colab_type": "text" 22 | }, 23 | "source": [ 24 | "### ✦ *Google Colab 突破90分钟自动断开:\n", 25 | "

每60分钟自动运行代码以刷新90分钟断开限制. 打开 developer-settings (在你的浏览器) 快速健 Ctrl+Shift+I 然后按console 输入以下代码 Enter. ( mac 按 Option+Command+I)

复制以下隐藏代码粉贴在浏览器console!!不要关闭浏览器以免失效" 26 | ] 27 | }, 28 | { 29 | "cell_type": "markdown", 30 | "metadata": { 31 | "id": "riiKlEyvr24C", 32 | "colab_type": "text" 33 | }, 34 | "source": [ 35 | "function ClickConnect(){\n", 36 | "console.log(\"Working\"); \n", 37 | "document.querySelector(\"colab-connect-button\").click() \n", 38 | "}setInterval(ClickConnect,6000)" 39 | ] 40 | }, 41 | { 42 | "cell_type": "code", 43 | "metadata": { 44 | "id": "i3D8AT00r99O", 45 | "colab_type": "code", 46 | "colab": { 47 | "base_uri": "https://localhost:8080/", 48 | "height": 35 49 | }, 50 | "cellView": "form", 51 | "outputId": "17708595-bc92-4029-a16b-b70b6fe9b55f" 52 | }, 53 | "source": [ 54 | "#@markdown

← 输入了代码后运行以防止断开\n", 55 | "\n", 56 | "\n", 57 | "import IPython\n", 58 | "from google.colab import output\n", 59 | "\n", 60 | "display(IPython.display.Javascript('''\n", 61 | " function ClickConnect(){\n", 62 | " btn = document.querySelector(\"colab-connect-button\")\n", 63 | " if (btn != null){\n", 64 | " console.log(\"Click colab-connect-button\"); \n", 65 | " btn.click() \n", 66 | " }\n", 67 | " \n", 68 | " btn = document.getElementById('ok')\n", 69 | " if (btn != null){\n", 70 | " console.log(\"Click reconnect\"); \n", 71 | " btn.click() \n", 72 | " }\n", 73 | " }\n", 74 | " \n", 75 | "setInterval(ClickConnect,60000)\n", 76 | "'''))\n", 77 | "\n", 78 | "print(\"Done.\")" 79 | ], 80 | "execution_count": 1, 81 | "outputs": [ 82 | { 83 | "output_type": "display_data", 84 | "data": { 85 | "application/javascript": [ 86 | "\n", 87 | " function ClickConnect(){\n", 88 | " btn = document.querySelector(\"colab-connect-button\")\n", 89 | " if (btn != null){\n", 90 | " console.log(\"Click colab-connect-button\"); \n", 91 | " btn.click() \n", 92 | " }\n", 93 | " \n", 94 | " btn = document.getElementById('ok')\n", 95 | " if (btn != null){\n", 96 | " console.log(\"Click reconnect\"); \n", 97 | " btn.click() \n", 98 | " }\n", 99 | " }\n", 100 | " \n", 101 | "setInterval(ClickConnect,60000)\n" 102 | ], 103 | "text/plain": [ 104 | "" 105 | ] 106 | }, 107 | "metadata": { 108 | "tags": [] 109 | } 110 | }, 111 | { 112 | "output_type": "stream", 113 | "text": [ 114 | "Done.\n" 115 | ], 116 | "name": "stdout" 117 | } 118 | ] 119 | }, 120 | { 121 | "cell_type": "markdown", 122 | "metadata": { 123 | "id": "KTxQcgrJ4Ps1", 124 | "colab_type": "text" 125 | }, 126 | "source": [ 127 | "# **第一步 绑定GoogleDrive**\n" 128 | ] 129 | }, 130 | { 131 | "cell_type": "code", 132 | "metadata": { 133 | "id": "dNNdazup4OtO", 134 | "colab_type": "code", 135 | "cellView": "form", 136 | "colab": { 137 | "base_uri": "https://localhost:8080/", 138 | "height": 127 139 | }, 140 | "outputId": "4057240b-e693-4a73-e0f7-402443ca05d5" 141 | }, 142 | "source": [ 143 | "#@markdown 点击左侧按钮,授权绑定GoogleDrive\n", 144 | "from google.colab import drive\n", 145 | "drive.mount('/content/drive')" 146 | ], 147 | "execution_count": null, 148 | "outputs": [ 149 | { 150 | "output_type": "stream", 151 | "text": [ 152 | "Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=947318989803-6bn6qk8qdgf4n4g3pfee6491hc0brc4i.apps.googleusercontent.com&redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&response_type=code&scope=email%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdocs.test%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive.photos.readonly%20https%3a%2f%2fwww.googleapis.com%2fauth%2fpeopleapi.readonly\n", 153 | "\n", 154 | "Enter your authorization code:\n", 155 | "··········\n", 156 | "Mounted at /content/drive\n" 157 | ], 158 | "name": "stdout" 159 | } 160 | ] 161 | }, 162 | { 163 | "cell_type": "markdown", 164 | "metadata": { 165 | "id": "V9HIk6h6Nj8E", 166 | "colab_type": "text" 167 | }, 168 | "source": [ 169 | "# **RAR**" 170 | ] 171 | }, 172 | { 173 | "cell_type": "markdown", 174 | "metadata": { 175 | "id": "K-CsXWjq0sHF", 176 | "colab_type": "text" 177 | }, 178 | "source": [ 179 | "# 查看单个RAR压缩文件的目录树" 180 | ] 181 | }, 182 | { 183 | "cell_type": "code", 184 | "metadata": { 185 | "id": "7lO2P4Vk0_Yo", 186 | "colab_type": "code", 187 | "cellView": "form", 188 | "colab": {} 189 | }, 190 | "source": [ 191 | "#@markdown 点击左侧按钮,查看单个RAR压缩包里面的目录结构\n", 192 | "\n", 193 | "#@markdown destination 查看的RAR压缩包的路径(带.rar后缀)\n", 194 | "\n", 195 | "destination = \"\" #@param {type:\"string\"}\n", 196 | "!unrar v \"$destination\"" 197 | ], 198 | "execution_count": null, 199 | "outputs": [] 200 | }, 201 | { 202 | "cell_type": "markdown", 203 | "metadata": { 204 | "id": "JCAU3eTK4l7V", 205 | "colab_type": "text" 206 | }, 207 | "source": [ 208 | "# 查看目录下所有RAR压缩文件的目录树" 209 | ] 210 | }, 211 | { 212 | "cell_type": "code", 213 | "metadata": { 214 | "id": "LPhgWJhT4qL0", 215 | "colab_type": "code", 216 | "cellView": "form", 217 | "colab": {} 218 | }, 219 | "source": [ 220 | "#@markdown 点击左侧按钮,查看目录下所有RAR压缩包的目录结构\n", 221 | "\n", 222 | "#@markdown destination 要查看的目录的路径(不带.rar后缀)\n", 223 | "\n", 224 | "destination = \"\" #@param {type:\"string\"}\n", 225 | "!unrar v \"$destination/*.rar\"" 226 | ], 227 | "execution_count": null, 228 | "outputs": [] 229 | }, 230 | { 231 | "cell_type": "markdown", 232 | "metadata": { 233 | "id": "b9dBiBONgb7-", 234 | "colab_type": "text" 235 | }, 236 | "source": [ 237 | "## 解压单个RAR压缩包 ****支持分压卷****" 238 | ] 239 | }, 240 | { 241 | "cell_type": "code", 242 | "metadata": { 243 | "id": "OX6_9OC24jBB", 244 | "colab_type": "code", 245 | "cellView": "form", 246 | "colab": {} 247 | }, 248 | "source": [ 249 | "#@markdown 点击左侧按钮,解压单个RAR压缩包\n", 250 | "\n", 251 | "#@markdown destination 解压的文件的路径(带.rar后缀)\n", 252 | "\n", 253 | "destination = \"\" #@param {type:\"string\"}\n", 254 | "\n", 255 | "#@markdown files 解压文件的目的地(目录)\n", 256 | "\n", 257 | "files = \"\" #@param {type:\"string\"}\n", 258 | "\n", 259 | "#@markdown password 解压密码(有就填写没有就不填)\n", 260 | "\n", 261 | "password = \"\" #@param {type:\"string\"}\n", 262 | "\n", 263 | "print(\"若没有设置密码则直接回车即可\")\n", 264 | "\n", 265 | "!unrar x -p\"$password\" -o+ \"$destination\" \"$files\"" 266 | ], 267 | "execution_count": null, 268 | "outputs": [] 269 | }, 270 | { 271 | "cell_type": "markdown", 272 | "metadata": { 273 | "id": "GpmveD-q1csM", 274 | "colab_type": "text" 275 | }, 276 | "source": [ 277 | "## 批量解压RAR" 278 | ] 279 | }, 280 | { 281 | "cell_type": "code", 282 | "metadata": { 283 | "id": "0V3bePvK1jdi", 284 | "colab_type": "code", 285 | "cellView": "form", 286 | "colab": {} 287 | }, 288 | "source": [ 289 | "#@markdown 点击左侧按钮,解压整个目录下多个RAR压缩包\n", 290 | "\n", 291 | "#@markdown destination 解压的文件的路径(不带.rar后缀)\n", 292 | "\n", 293 | "destination = \"\" #@param {type:\"string\"}\n", 294 | "\n", 295 | "#@markdown files 解压文件的目的地(目录)\n", 296 | "\n", 297 | "files = \"\" #@param {type:\"string\"}\n", 298 | "\n", 299 | "#@markdown password 解压密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!)\n", 300 | "\n", 301 | "password = \"\" #@param {type:\"string\"}\n", 302 | "\n", 303 | "print(\"若没有设置密码则直接回车即可\")\n", 304 | "\n", 305 | "!unrar x -p\"$password\" -o+ \"$destination/*.rar\" \"$files\" " 306 | ], 307 | "execution_count": null, 308 | "outputs": [] 309 | }, 310 | { 311 | "cell_type": "markdown", 312 | "metadata": { 313 | "id": "BoYpEFE-olJ6", 314 | "colab_type": "text" 315 | }, 316 | "source": [ 317 | "# **ZIP**" 318 | ] 319 | }, 320 | { 321 | "cell_type": "markdown", 322 | "metadata": { 323 | "id": "99A7HlNIOJcD", 324 | "colab_type": "text" 325 | }, 326 | "source": [ 327 | "# 查看单个ZIP压缩文件的目录树" 328 | ] 329 | }, 330 | { 331 | "cell_type": "code", 332 | "metadata": { 333 | "id": "US8HfBTxOKom", 334 | "colab_type": "code", 335 | "cellView": "form", 336 | "colab": {} 337 | }, 338 | "source": [ 339 | "#@markdown 点击左侧按钮,查看单个ZIP压缩包的目录结构\n", 340 | "\n", 341 | "#@markdown destination 查看的文件的路径(带.zip后缀)\n", 342 | "\n", 343 | "destination = \"/content/drive/My Drive/Test/242.zip\" #@param {type:\"string\"}\n", 344 | "\n", 345 | "!unzip -l \"$destination\"" 346 | ], 347 | "execution_count": null, 348 | "outputs": [] 349 | }, 350 | { 351 | "cell_type": "markdown", 352 | "metadata": { 353 | "id": "sYD6YExfj4E7", 354 | "colab_type": "text" 355 | }, 356 | "source": [ 357 | "# 查看多个ZIP压缩文件里面的目录树" 358 | ] 359 | }, 360 | { 361 | "cell_type": "code", 362 | "metadata": { 363 | "id": "_us5GDbwj6Zy", 364 | "colab_type": "code", 365 | "cellView": "form", 366 | "colab": {} 367 | }, 368 | "source": [ 369 | "#@markdown 点击左侧按钮,查看整个目录下ZIP压缩包的目录结构\n", 370 | "\n", 371 | "#@markdown destination 查看的文件夹的路径(不带.zip后缀)\n", 372 | "\n", 373 | "destination = \"\" #@param {type:\"string\"}\n", 374 | "\n", 375 | "!unzip -l \"$destination/*.zip\"" 376 | ], 377 | "execution_count": null, 378 | "outputs": [] 379 | }, 380 | { 381 | "cell_type": "markdown", 382 | "metadata": { 383 | "id": "7nyY-DELpKqH", 384 | "colab_type": "text" 385 | }, 386 | "source": [ 387 | "### 解压单个ZIP压缩包 ****支持分压卷****" 388 | ] 389 | }, 390 | { 391 | "cell_type": "code", 392 | "metadata": { 393 | "id": "zp0_u_kLo41y", 394 | "colab_type": "code", 395 | "cellView": "form", 396 | "colab": {} 397 | }, 398 | "source": [ 399 | "#@markdown 点击左侧按钮,解压单个ZIP压缩包\n", 400 | "\n", 401 | "#@markdown destination 解压的文件的路径(带.zip后缀)\n", 402 | "\n", 403 | "destination = \"/content/drive/My Drive/\\u70E4\\u7BB1\\u83DC\\u8C31/\\u81EA\\u52A8\\u89E3\\u538B\\u5931\\u8D25\\uFF0C\\u8BF7\\u624B\\u52A8\\u89E3\\u538B_E88 \\u7B2C\\u4E00\\u6B21\\u5B66\\u70D8\\u7119.pdf.zip\" #@param {type:\"string\"}\n", 404 | "\n", 405 | "#@markdown files 解压文件的目的地(目录)\n", 406 | "\n", 407 | "files = \"/content/drive/My Drive/\\u70E4\\u7BB1\\u83DC\\u8C31\" #@param {type:\"string\"}\n", 408 | "\n", 409 | "#@markdown password 解压密码(有就填写没有就不填)\n", 410 | "\n", 411 | "password = \":DPVND1WL;;=L8C73V>XQASAXZ?AC1D1\" #@param {type:\"string\"}\n", 412 | "\n", 413 | "print(\"若没有设置密码则直接回车即可\")\n", 414 | "\n", 415 | "!7z x -aoa \"$destination\" -P\"$password\" -o\"$files\" \n" 416 | ], 417 | "execution_count": null, 418 | "outputs": [] 419 | }, 420 | { 421 | "cell_type": "markdown", 422 | "metadata": { 423 | "id": "YKVdsgGTo7xp", 424 | "colab_type": "text" 425 | }, 426 | "source": [ 427 | "## 批量解压ZIP" 428 | ] 429 | }, 430 | { 431 | "cell_type": "code", 432 | "metadata": { 433 | "id": "dDmSDx7ApHTP", 434 | "colab_type": "code", 435 | "cellView": "form", 436 | "colab": {} 437 | }, 438 | "source": [ 439 | "#@markdown 点击左侧按钮,解压整个目录下多个ZIP压缩包\n", 440 | "\n", 441 | "#@markdown destination 填入要解压的文件的路径(不带.zip后缀)\n", 442 | "\n", 443 | "destination = \"\" #@param {type:\"string\"}\n", 444 | "\n", 445 | "#@markdown files 解压文件的目的地(目录)\n", 446 | "\n", 447 | "files = \"\" #@param {type:\"string\"}\n", 448 | "\n", 449 | "#@markdown password 解压密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!)\n", 450 | "\n", 451 | "password = \"\" #@param {type:\"string\"}\n", 452 | "\n", 453 | "print(\"若没有设置密码则直接回车即可\")\n", 454 | "\n", 455 | "!7z x -aoa \"$destination/*.zip\" -P\"$password\" -o\"$files\" " 456 | ], 457 | "execution_count": null, 458 | "outputs": [] 459 | }, 460 | { 461 | "cell_type": "markdown", 462 | "metadata": { 463 | "id": "aXy3kBftk3LJ", 464 | "colab_type": "text" 465 | }, 466 | "source": [ 467 | "# **7Z**\n" 468 | ] 469 | }, 470 | { 471 | "cell_type": "markdown", 472 | "metadata": { 473 | "id": "4dsc5GMffmWp", 474 | "colab_type": "text" 475 | }, 476 | "source": [ 477 | "# 查看单个7Z压缩文件的目录树" 478 | ] 479 | }, 480 | { 481 | "cell_type": "code", 482 | "metadata": { 483 | "id": "UBgJ1_ghhBJ0", 484 | "colab_type": "code", 485 | "cellView": "form", 486 | "colab": {} 487 | }, 488 | "source": [ 489 | "#@markdown 点击左侧按钮,查看单个7Z压缩包的目录结构\n", 490 | "\n", 491 | "#@markdown destination 查看压缩包的路径(带.7z后缀)\n", 492 | "\n", 493 | "destination = \"\" #@param {type:\"string\"}\n", 494 | "\n", 495 | "!7z l \"$destination\"" 496 | ], 497 | "execution_count": null, 498 | "outputs": [] 499 | }, 500 | { 501 | "cell_type": "markdown", 502 | "metadata": { 503 | "id": "nkIHIWOghOQ-", 504 | "colab_type": "text" 505 | }, 506 | "source": [ 507 | "# 查看多个7Z压缩文件的目录树" 508 | ] 509 | }, 510 | { 511 | "cell_type": "code", 512 | "metadata": { 513 | "id": "mRx5iAMhhU56", 514 | "colab_type": "code", 515 | "cellView": "form", 516 | "colab": {} 517 | }, 518 | "source": [ 519 | "#@markdown 点击左侧按钮,查看整个目录下7Z压缩包的目录结构\n", 520 | "\n", 521 | "#@markdown destination 查看目录的路径(不带.7z后缀)\n", 522 | "\n", 523 | "destination = \"\" #@param {type:\"string\"}\n", 524 | "\n", 525 | "!7z l \"$destination/*.7z.*\"" 526 | ], 527 | "execution_count": null, 528 | "outputs": [] 529 | }, 530 | { 531 | "cell_type": "markdown", 532 | "metadata": { 533 | "id": "UtoOOtNwlVqs", 534 | "colab_type": "text" 535 | }, 536 | "source": [ 537 | "## 解压单个7Z压缩包 ****支持分压卷****" 538 | ] 539 | }, 540 | { 541 | "cell_type": "code", 542 | "metadata": { 543 | "id": "l42Pdhjjk7On", 544 | "colab_type": "code", 545 | "cellView": "form", 546 | "colab": {} 547 | }, 548 | "source": [ 549 | "#@markdown 点击左侧按钮,解压单个7Z压缩包\n", 550 | "\n", 551 | "#@markdown destination 解压的7Z压缩包的路径(带.7z后缀)\n", 552 | "\n", 553 | "destination = \"\" #@param {type:\"string\"}\n", 554 | "\n", 555 | "#@markdown files 解压压缩文件到文件夹目录(目的地)\n", 556 | "\n", 557 | "files = \"\" #@param {type:\"string\"}\n", 558 | "\n", 559 | "#@markdown password 压缩密码(有就填写没有就不填)\n", 560 | "\n", 561 | "password = \"\" #@param {type:\"string\"}\n", 562 | "\n", 563 | "print(\"若没有设置密码则直接回车即可\")\n", 564 | "\n", 565 | "!7z x -aoa \"$destination\" -P\"$password\" -r -o\"$files\"" 566 | ], 567 | "execution_count": null, 568 | "outputs": [] 569 | }, 570 | { 571 | "cell_type": "markdown", 572 | "metadata": { 573 | "id": "PdLQstMLnESX", 574 | "colab_type": "text" 575 | }, 576 | "source": [ 577 | "## 批量解压7z\n" 578 | ] 579 | }, 580 | { 581 | "cell_type": "code", 582 | "metadata": { 583 | "id": "1vODPmEqnKCy", 584 | "colab_type": "code", 585 | "cellView": "form", 586 | "colab": {} 587 | }, 588 | "source": [ 589 | "#@markdown 点击左侧按钮,解压整个目录下多个7Z压缩包\n", 590 | "\n", 591 | "#@markdown destination 解压的文件目录的路径(不带.7z后缀)\n", 592 | "\n", 593 | "destination = \"\" #@param {type:\"string\"}\n", 594 | "\n", 595 | "#@markdown files 解压压缩文件到文件夹目录(目的地)\n", 596 | "\n", 597 | "files = \"\" #@param {type:\"string\"}\n", 598 | "\n", 599 | "#@markdown password 压缩密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!)\n", 600 | "\n", 601 | "password = \"\" #@param {type:\"string\"}\n", 602 | "\n", 603 | "print(\"若没有设置密码则直接回车即可\")\n", 604 | "\n", 605 | "!7z x -aoa \"$destination/*.7z\" -P\"$password\" -o\"$files\" " 606 | ], 607 | "execution_count": null, 608 | "outputs": [] 609 | }, 610 | { 611 | "cell_type": "markdown", 612 | "metadata": { 613 | "id": "Gox7M85YoQq9", 614 | "colab_type": "text" 615 | }, 616 | "source": [ 617 | "# **通用格式**\n", 618 | "\n" 619 | ] 620 | }, 621 | { 622 | "cell_type": "markdown", 623 | "metadata": { 624 | "id": "RX194Z_7ovDC", 625 | "colab_type": "text" 626 | }, 627 | "source": [ 628 | "# 查看单个压缩文件的目录树" 629 | ] 630 | }, 631 | { 632 | "cell_type": "code", 633 | "metadata": { 634 | "id": "Ft1TyA3uo1VM", 635 | "colab_type": "code", 636 | "cellView": "form", 637 | "colab": {} 638 | }, 639 | "source": [ 640 | "#@markdown 点击左侧按钮,查看单个压缩包的目录结构\n", 641 | "\n", 642 | "#@markdown destination 查看压缩包的路径(带.xxx后缀)\n", 643 | "\n", 644 | "destination = \"\" #@param {type:\"string\"}\n", 645 | "\n", 646 | "!7z l \"$destination\"" 647 | ], 648 | "execution_count": null, 649 | "outputs": [] 650 | }, 651 | { 652 | "cell_type": "markdown", 653 | "metadata": { 654 | "id": "sMevjvHeo8xR", 655 | "colab_type": "text" 656 | }, 657 | "source": [ 658 | "# 查看多个压缩文件的目录树" 659 | ] 660 | }, 661 | { 662 | "cell_type": "code", 663 | "metadata": { 664 | "id": "QzIn1qjKo-QN", 665 | "colab_type": "code", 666 | "cellView": "form", 667 | "colab": {} 668 | }, 669 | "source": [ 670 | "#@markdown 点击左侧按钮,查看整个目录下压缩包的目录结构\n", 671 | "\n", 672 | "#@markdown destination 查看目录的路径(不带.xxx后缀)\n", 673 | "\n", 674 | "destination = \"\" #@param {type:\"string\"}\n", 675 | "\n", 676 | "!7z l \"$destination/*.*\"" 677 | ], 678 | "execution_count": null, 679 | "outputs": [] 680 | }, 681 | { 682 | "cell_type": "markdown", 683 | "metadata": { 684 | "id": "PU18MJOOpLkc", 685 | "colab_type": "text" 686 | }, 687 | "source": [ 688 | "## 解压单个压缩包 ****支持分压卷****" 689 | ] 690 | }, 691 | { 692 | "cell_type": "code", 693 | "metadata": { 694 | "id": "g8EysIejpMDx", 695 | "colab_type": "code", 696 | "cellView": "form", 697 | "colab": {} 698 | }, 699 | "source": [ 700 | "#@markdown 点击左侧按钮,解压单个压缩包\n", 701 | "\n", 702 | "\n", 703 | "#@markdown destination 解压的7Z压缩包的路径(带.xxx后缀)\n", 704 | "\n", 705 | "destination = \"\" #@param {type:\"string\"}\n", 706 | "\n", 707 | "#@markdown files 解压压缩文件到文件夹目录(目的地)\n", 708 | "\n", 709 | "files = \"\" #@param {type:\"string\"}\n", 710 | "\n", 711 | "#@markdown password 压缩密码(有就填写没有就不填)\n", 712 | "\n", 713 | "password = \"\" #@param {type:\"string\"}\n", 714 | "\n", 715 | "!7z x -aoa \"$destination\" -P\"$password\" -r -o\"$files\"" 716 | ], 717 | "execution_count": null, 718 | "outputs": [] 719 | }, 720 | { 721 | "cell_type": "markdown", 722 | "metadata": { 723 | "id": "Og2T06y5pVVR", 724 | "colab_type": "text" 725 | }, 726 | "source": [ 727 | "## 批量解压\n" 728 | ] 729 | }, 730 | { 731 | "cell_type": "code", 732 | "metadata": { 733 | "id": "_-t-Jb3KpYiT", 734 | "colab_type": "code", 735 | "cellView": "form", 736 | "colab": {} 737 | }, 738 | "source": [ 739 | "#@markdown 点击左侧按钮,解压整个目录下多个压缩包\n", 740 | "\n", 741 | "#@markdown destination 解压的文件目录的路径(不带.xxx后缀)\n", 742 | "\n", 743 | "destination = \"\" #@param {type:\"string\"}\n", 744 | "\n", 745 | "#@markdown files 解压压缩文件到文件夹目录(目的地)\n", 746 | "\n", 747 | "files = \"\" #@param {type:\"string\"}\n", 748 | "\n", 749 | "#@markdown password 压缩密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!)\n", 750 | "\n", 751 | "password = \"\" #@param {type:\"string\"}\n", 752 | "\n", 753 | "!7z x -aoa \"$destination/*.*\" -P\"$password\" -o\"$files\" " 754 | ], 755 | "execution_count": null, 756 | "outputs": [] 757 | } 758 | ] 759 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /google_drive_online_decompression.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """Google_Drive_Online_Decompression.ipynb 3 | 4 | Automatically generated by Colaboratory. 5 | 6 | Original file is located at 7 | https://colab.research.google.com/drive/1HrE4yd509UyAmvbzt0Hwx7sVtMrDwkCF 8 | 9 | ### ✦ *Google Colab 突破90分钟自动断开: 10 |

每60分钟自动运行代码以刷新90分钟断开限制. 打开 developer-settings (在你的浏览器) 快速健 Ctrl+Shift+I 然后按console 输入以下代码 Enter. ( mac 按 Option+Command+I)

复制以下隐藏代码粉贴在浏览器console!!不要关闭浏览器以免失效 11 | 12 | function ClickConnect(){ 13 | console.log("Working"); 14 | document.querySelector("colab-connect-button").click() 15 | }setInterval(ClickConnect,6000) 16 | """ 17 | 18 | #@markdown

← 输入了代码后运行以防止断开 19 | 20 | 21 | import IPython 22 | from google.colab import output 23 | 24 | display(IPython.display.Javascript(''' 25 | function ClickConnect(){ 26 | btn = document.querySelector("colab-connect-button") 27 | if (btn != null){ 28 | console.log("Click colab-connect-button"); 29 | btn.click() 30 | } 31 | 32 | btn = document.getElementById('ok') 33 | if (btn != null){ 34 | console.log("Click reconnect"); 35 | btn.click() 36 | } 37 | } 38 | 39 | setInterval(ClickConnect,60000) 40 | ''')) 41 | 42 | print("Done.") 43 | 44 | """# **第一步 绑定GoogleDrive**""" 45 | 46 | #@markdown 点击左侧按钮,授权绑定GoogleDrive 47 | from google.colab import drive 48 | drive.mount('/content/drive') 49 | 50 | """# **RAR** 51 | 52 | # 查看单个RAR压缩文件的目录树 53 | """ 54 | 55 | #@markdown 点击左侧按钮,查看单个RAR压缩包里面的目录结构 56 | 57 | #@markdown destination 查看的RAR压缩包的路径(带.rar后缀) 58 | 59 | destination = "" #@param {type:"string"} 60 | !unrar v "$destination" 61 | 62 | """# 查看目录下所有RAR压缩文件的目录树""" 63 | 64 | #@markdown 点击左侧按钮,查看目录下所有RAR压缩包的目录结构 65 | 66 | #@markdown destination 要查看的目录的路径(不带.rar后缀) 67 | 68 | destination = "" #@param {type:"string"} 69 | !unrar v "$destination/*.rar" 70 | 71 | """## 解压单个RAR压缩包 ****支持分压卷****""" 72 | 73 | #@markdown 点击左侧按钮,解压单个RAR压缩包 74 | 75 | #@markdown destination 解压的文件的路径(带.rar后缀) 76 | 77 | destination = "" #@param {type:"string"} 78 | 79 | #@markdown files 解压文件的目的地(目录) 80 | 81 | files = "" #@param {type:"string"} 82 | 83 | #@markdown password 解压密码(有就填写没有就不填) 84 | 85 | password = "" #@param {type:"string"} 86 | 87 | print("若没有设置密码则直接回车即可") 88 | 89 | !unrar x -p"$password" -o+ "$destination" "$files" 90 | 91 | """## 批量解压RAR""" 92 | 93 | #@markdown 点击左侧按钮,解压整个目录下多个RAR压缩包 94 | 95 | #@markdown destination 解压的文件的路径(不带.rar后缀) 96 | 97 | destination = "" #@param {type:"string"} 98 | 99 | #@markdown files 解压文件的目的地(目录) 100 | 101 | files = "" #@param {type:"string"} 102 | 103 | #@markdown password 解压密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!) 104 | 105 | password = "" #@param {type:"string"} 106 | 107 | print("若没有设置密码则直接回车即可") 108 | 109 | !unrar x -p"$password" -o+ "$destination/*.rar" "$files" 110 | 111 | """# **ZIP** 112 | 113 | # 查看单个ZIP压缩文件的目录树 114 | """ 115 | 116 | #@markdown 点击左侧按钮,查看单个ZIP压缩包的目录结构 117 | 118 | #@markdown destination 查看的文件的路径(带.zip后缀) 119 | 120 | destination = "/content/drive/My Drive/Test/242.zip" #@param {type:"string"} 121 | 122 | !unzip -l "$destination" 123 | 124 | """# 查看多个ZIP压缩文件里面的目录树""" 125 | 126 | #@markdown 点击左侧按钮,查看整个目录下ZIP压缩包的目录结构 127 | 128 | #@markdown destination 查看的文件夹的路径(不带.zip后缀) 129 | 130 | destination = "" #@param {type:"string"} 131 | 132 | !unzip -l "$destination/*.zip" 133 | 134 | """### 解压单个ZIP压缩包 ****支持分压卷****""" 135 | 136 | #@markdown 点击左侧按钮,解压单个ZIP压缩包 137 | 138 | #@markdown destination 解压的文件的路径(带.zip后缀) 139 | 140 | destination = "/content/drive/My Drive/\u70E4\u7BB1\u83DC\u8C31/\u81EA\u52A8\u89E3\u538B\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u89E3\u538B_E88 \u7B2C\u4E00\u6B21\u5B66\u70D8\u7119.pdf.zip" #@param {type:"string"} 141 | 142 | #@markdown files 解压文件的目的地(目录) 143 | 144 | files = "/content/drive/My Drive/\u70E4\u7BB1\u83DC\u8C31" #@param {type:"string"} 145 | 146 | #@markdown password 解压密码(有就填写没有就不填) 147 | 148 | password = ":DPVND1WL;;=L8C73V>XQASAXZ?AC1D1" #@param {type:"string"} 149 | 150 | print("若没有设置密码则直接回车即可") 151 | 152 | !7z x -aoa "$destination" -P"$password" -o"$files" 153 | 154 | """## 批量解压ZIP""" 155 | 156 | #@markdown 点击左侧按钮,解压整个目录下多个ZIP压缩包 157 | 158 | #@markdown destination 填入要解压的文件的路径(不带.zip后缀) 159 | 160 | destination = "" #@param {type:"string"} 161 | 162 | #@markdown files 解压文件的目的地(目录) 163 | 164 | files = "" #@param {type:"string"} 165 | 166 | #@markdown password 解压密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!) 167 | 168 | password = "" #@param {type:"string"} 169 | 170 | print("若没有设置密码则直接回车即可") 171 | 172 | !7z x -aoa "$destination/*.zip" -P"$password" -o"$files" 173 | 174 | """# **7Z** 175 | 176 | # 查看单个7Z压缩文件的目录树 177 | """ 178 | 179 | #@markdown 点击左侧按钮,查看单个7Z压缩包的目录结构 180 | 181 | #@markdown destination 查看压缩包的路径(带.7z后缀) 182 | 183 | destination = "" #@param {type:"string"} 184 | 185 | !7z l "$destination" 186 | 187 | """# 查看多个7Z压缩文件的目录树""" 188 | 189 | #@markdown 点击左侧按钮,查看整个目录下7Z压缩包的目录结构 190 | 191 | #@markdown destination 查看目录的路径(不带.7z后缀) 192 | 193 | destination = "" #@param {type:"string"} 194 | 195 | !7z l "$destination/*.7z.*" 196 | 197 | """## 解压单个7Z压缩包 ****支持分压卷****""" 198 | 199 | #@markdown 点击左侧按钮,解压单个7Z压缩包 200 | 201 | #@markdown destination 解压的7Z压缩包的路径(带.7z后缀) 202 | 203 | destination = "" #@param {type:"string"} 204 | 205 | #@markdown files 解压压缩文件到文件夹目录(目的地) 206 | 207 | files = "" #@param {type:"string"} 208 | 209 | #@markdown password 压缩密码(有就填写没有就不填) 210 | 211 | password = "" #@param {type:"string"} 212 | 213 | print("若没有设置密码则直接回车即可") 214 | 215 | !7z x -aoa "$destination" -P"$password" -r -o"$files" 216 | 217 | """## 批量解压7z""" 218 | 219 | #@markdown 点击左侧按钮,解压整个目录下多个7Z压缩包 220 | 221 | #@markdown destination 解压的文件目录的路径(不带.7z后缀) 222 | 223 | destination = "" #@param {type:"string"} 224 | 225 | #@markdown files 解压压缩文件到文件夹目录(目的地) 226 | 227 | files = "" #@param {type:"string"} 228 | 229 | #@markdown password 压缩密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!) 230 | 231 | password = "" #@param {type:"string"} 232 | 233 | print("若没有设置密码则直接回车即可") 234 | 235 | !7z x -aoa "$destination/*.7z" -P"$password" -o"$files" 236 | 237 | """# **通用格式** 238 | 239 | # 查看单个压缩文件的目录树 240 | """ 241 | 242 | #@markdown 点击左侧按钮,查看单个压缩包的目录结构 243 | 244 | #@markdown destination 查看压缩包的路径(带.xxx后缀) 245 | 246 | destination = "" #@param {type:"string"} 247 | 248 | !7z l "$destination" 249 | 250 | """# 查看多个压缩文件的目录树""" 251 | 252 | #@markdown 点击左侧按钮,查看整个目录下压缩包的目录结构 253 | 254 | #@markdown destination 查看目录的路径(不带.xxx后缀) 255 | 256 | destination = "" #@param {type:"string"} 257 | 258 | !7z l "$destination/*.*" 259 | 260 | """## 解压单个压缩包 ****支持分压卷****""" 261 | 262 | #@markdown 点击左侧按钮,解压单个压缩包 263 | 264 | 265 | #@markdown destination 解压的7Z压缩包的路径(带.xxx后缀) 266 | 267 | destination = "" #@param {type:"string"} 268 | 269 | #@markdown files 解压压缩文件到文件夹目录(目的地) 270 | 271 | files = "" #@param {type:"string"} 272 | 273 | #@markdown password 压缩密码(有就填写没有就不填) 274 | 275 | password = "" #@param {type:"string"} 276 | 277 | !7z x -aoa "$destination" -P"$password" -r -o"$files" 278 | 279 | """## 批量解压""" 280 | 281 | #@markdown 点击左侧按钮,解压整个目录下多个压缩包 282 | 283 | #@markdown destination 解压的文件目录的路径(不带.xxx后缀) 284 | 285 | destination = "" #@param {type:"string"} 286 | 287 | #@markdown files 解压压缩文件到文件夹目录(目的地) 288 | 289 | files = "" #@param {type:"string"} 290 | 291 | #@markdown password 压缩密码(有就填写没有就不填,因为是批量!所以必须密码是统一的,否则必定报错!!!) 292 | 293 | password = "" #@param {type:"string"} 294 | 295 | !7z x -aoa "$destination/*.*" -P"$password" -o"$files" -------------------------------------------------------------------------------- /img/20200717120303.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717120303.png -------------------------------------------------------------------------------- /img/20200717120621.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717120621.png -------------------------------------------------------------------------------- /img/20200717120656.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717120656.png -------------------------------------------------------------------------------- /img/20200717122938.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717122938.png -------------------------------------------------------------------------------- /img/20200717123359.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717123359.png -------------------------------------------------------------------------------- /img/20200717124553.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wilnk/Google-Drive-Online-Decompression/0c6c71b7c94c485470c2f5653a57e0f4dfc2f48c/img/20200717124553.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Google-Drive-Online-Decompression V1.1 2 | 本着就方便大家的想法,写了一个在线解压。省的大家上传GD的时候很麻烦,小文件数量多上传很慢。大文件就比较快,在TG群又看大家好多人说资源都要解压版,所以就随便写了一个这个。 3 | 4 | 可以解压市面上百分之90%的压缩格式。压缩功能还在考虑,看大家需求吧,如果要的话我在写。 5 | 6 | 如果好用的话麻烦点一下右上角的Start 谢谢 7 | 8 | 使用方法: 9 | 10 | 1. 代码拖到本地,打开Google Colab官网: https://colab.research.google.com/ 11 | 12 | ``` 13 | git clone https://github.com/Wilnk/Google-Drive-Online-Decompression 14 | ``` 15 | 16 | 17 | 18 | 2. 打开文件-上传(Google_Drive_Online_Decompression.ipynb) 提示登入 登入即可。 19 | 20 | ![avatar](/img/20200717124553.png) 21 | 22 | 23 | 24 | 3. ​ 连接Google Colab登入Google账号 绑定Google Drive授权 25 | 26 | ![avatar](/img/20200717120303.png) 27 | 28 | 29 | 30 | 4. 获取Google Drive 的信息 31 | 32 | ![avatar](/img/20200717120621.png) 33 | 34 | 5. 获取你要解压的文件(文件夹)路径 35 | 36 | 直接复制路径即可 37 | 38 | ![avatar](/img/20200717120656.png) 39 | 40 | 6. 按你的需求填入相对应的信息 ,然后运行即可。 41 | 42 | 43 | 44 | # Demo 45 | 46 | ![avatar](/img/20200717122938.png) 47 | 48 | 49 | 50 | ![avatar](/img/20200717123359.png) 51 | 52 | 53 | 54 | **注意事项:** 55 | 56 | ​ **1.如果因为魔法不行的 中途断流了 而导致解压关闭中断的。你直接重新运行即可,解压会自动覆盖写入。** 57 | 58 | ​ **2.如果运行中出现问题请发Issues上。** 59 | 60 | ​ **3.Google 的Colab有一个空间限制,用户分配空间就是100G左右。所以如果是强行解压超过100G的文件(比如500G的压缩文件),就会出现报错 “No such file or directory” 因为内存不够,所以无法读取。** 61 | 62 | ​ **4.尽量保持网络畅通,有些人不好的魔法就尽量换一个好一点的魔法。** 63 | 64 | ​ **5.绝大部分都能解压,我是测试过了才推上去的,很多时候都是浏览器问题!建议用谷浏览器(启用无痕模式)。** 65 | 66 | ​ **6.Colab建议采用TPU模式。因为GPU模式才分配硬盘68.4G,而TPU模式可以分配硬盘107.8G。(更改方法:Colab主界面--代码执行程序--更改运行时类型--TPU--保存)** 67 | 68 | ​ **7.遇到问题了先看看报错,错误代码复制粘贴Google或者百度搜索看看是什么问题,英文看不懂就翻译一下。如果不是自身的问题就试试通用解压和查看,还不行再关了浏览器再重新跑一遍,因为是在线解压,很吃网络。稍微断流什么的就报错。如果还是不行依旧报错,那么就请你到Issues上提交你的错误信息。** 69 | 70 | 71 | 72 | ## 7.28更新 73 | 添加了Google Colab 突破90分钟自动断开机制。 74 | 75 | --------------------------------------------------------------------------------