{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" } }, "cells": [ { "cell_type": "markdown", "source": [ "You can configure the wget command here : https://www.whatismybrowser.com/developers/tools/wget-wizard/\n", "\n", "Example on how to use the wget command.\n", "\n" ], "metadata": { "id": "tdZhsxGmo6dq" } }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "4sW9MbJVo4Qk" }, "outputs": [], "source": [ "#Initialize\n", "import os\n", "def my_mkdirs(folder):\n", " if os.path.exists(folder)==False:\n", " os.makedirs(folder)\n", "\n", "#Mount Google drive\n", "from google.colab import drive\n", "drive.mount('/content/drive')" ] }, { "cell_type": "code", "source": [ "#Download the audio to Googles server\n", "%cd /content/\n", "my_mkdirs(\"AudiosP1\")\n", "%cd AudiosP1\n", "!wget \"http://miya.nipah.moe:81/public/music/Concerto%20Moon%20(1997)%20-%20Fragments%20of%20the%20Moon%20%5bLMP%200004-015%20CD%5d%5bFLAC%5d/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/Sunny%20Lax%20-%20Sheeverz%20_%20Alliance%20-%20(2019)%20%7bWEB%20-%20FLAC%7d/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/2014%20-%20Casualties%20of%20Cool%20(HevyDevy%20Records%20HD2-CD-5717)/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/%e4%ba%9c%e8%98%ad%e7%9f%a5%e5%ad%90%20-%20More%20Relax/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/1977%20-%20%20Harbor%20(WB,%201999,%207599-26883-2)%20FLAC/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/Citla%20Re_%20Verse%20(%e5%85%b6%e6%ad%8c%e3%81%af%e5%8e%9f%e5%88%9d%e3%81%ae%e8%a8%98%e6%86%b6%e3%81%a8%e7%82%ba%e3%82%8a%e3%81%a6)/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/LEAH%20-%20Kings%20&%20Queens%20FLAC/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"\n", "!wget \"http://miya.nipah.moe:81/public/music/Compllege%20-%20Phant%202%20(2017)%20%5bCOCD-0011%5d%20%5bFLAC%5d/\" -R mp4 -nc -w 2 -r -nH --cut-dirs=2 -np -R \"index.html*\" -R \".DS_Store,Thumbs.db,thumbcache.db,desktop.ini,_macosx\"" ], "metadata": { "id": "iTFNa8UjqFUU" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "#Put the content in a .zip file and save that .zip file on your Google account\n", "%cd /content/\n", "!zip -r /content/drive/MyDrive/AudiosP1.zip /content/AudiosP1" ], "metadata": { "id": "8bUS2ISjrgaW" }, "execution_count": null, "outputs": [] }, { "cell_type": "code", "source": [ "#Delete the folder (as a safeguard, this will not work unless you manually change the name of the folder first)\n", "%cd /content/\n", "import shutil\n", "shutil.rmtree(\"/content/xxx-AudiosP1\")" ], "metadata": { "id": "r0JxiJyHqmMR" }, "execution_count": null, "outputs": [] } ] }