Spaces:
Paused
Paused
File size: 7,392 Bytes
dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 d13c477 90f7845 dd3a404 90f7845 d13c477 90f7845 d13c477 dd3a404 90f7845 d13c477 90f7845 d13c477 dd3a404 90f7845 d13c477 90f7845 d13c477 90f7845 d13c477 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 90f7845 dd3a404 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/linuxbrew/downloads\n"
]
}
],
"source": [
"%mkdir ../downloads\n",
"%cd ../downloads"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Writing /home/linuxbrew/links.txt\n"
]
}
],
"source": [
"%%writefile /home/linuxbrew/links.txt\n",
"magnet:?xt=urn:btih:a437eb6825720e780c4c33063476499ec6b57276&dn=Horrible+Bosses+(2011)+1080p+BrRip+X264:+YIFY&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451&tr=udp%3A%2F%2Ftracker.moeking.me%3A6969&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969&tr=udp%3A%2F%2Fopen.tracker.cl%3A1337&tr=udp%3A%2F%2Fexodus.desync.com%3A6969"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"09/30 17:32:59 [\u001b[1;32mNOTICE\u001b[0m] Downloading 1 item(s)\n",
"\n",
"09/30 17:33:00 [\u001b[1;31mERROR\u001b[0m] Exception caught while loading DHT routing table from /home/linuxbrew/.cache/aria2/dht.dat\n",
"Exception: [DHTRoutingTableDeserializer.cc:82] errorCode=1 Failed to load DHT routing table from /home/linuxbrew/.cache/aria2/dht.dat\n",
"\n",
"09/30 17:33:00 [\u001b[1;32mNOTICE\u001b[0m] IPv4 DHT: listening on UDP port 6976\n",
"\n",
"09/30 17:33:00 [\u001b[1;32mNOTICE\u001b[0m] IPv4 BitTorrent: listening on TCP port 6964\n",
"\n",
"09/30 17:33:00 [\u001b[1;32mNOTICE\u001b[0m] IPv6 BitTorrent: listening on TCP port 6964\n",
"\u001b[35m[\u001b[0m#6e3e30 14KiB/14KiB\u001b[36m(100%)\u001b[0m CN:43 SD:1\u001b[35m]\u001b[0m\u001b[0m \n",
"09/30 17:33:03 [\u001b[1;32mNOTICE\u001b[0m] Download complete: [MEMORY][METADATA]Horrible+Bosses+(2011)+1080p+BrRip+X264:+YIFY\n",
" *** Download Progress Summary as of Sat Sep 30 17:34:00 2023 *** [36m6.2KiB\u001b[0m(128KiB) ETA:\u001b[33m1h8m38s\u001b[0m\u001b[35m]\u001b[0m\u001b[0m\n",
"===============================================================================\n",
"[#fa212b 21MiB/1.4GiB(1%) CN:30 SD:12 DL:385KiB UL:5.4KiB(128KiB) ETA:1h4m30s]\n",
"FILE: /home/linuxbrew/downloads/Horrible Bosses (2011) [1080p]/Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4 (1more)\n",
"-------------------------------------------------------------------------------\n",
"\n",
" *** Download Progress Summary as of Sat Sep 30 17:35:01 2023 *** \u001b[36m0B\u001b[0m(320KiB) ETA:\u001b[33m1m14s\u001b[0m\u001b[35m]\u001b[0m\u001b[0m\u001b[0mm\n",
"===============================================================================\n",
"[#fa212b 389MiB/1.4GiB(26%) CN:42 SD:12 DL:11MiB UL:0B(320KiB) ETA:1m32s]\n",
"FILE: /home/linuxbrew/downloads/Horrible Bosses (2011) [1080p]/Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4 (1more)\n",
"-------------------------------------------------------------------------------\n",
"\n",
" *** Download Progress Summary as of Sat Sep 30 17:36:05 2023 *** \u001b[36m5.9KiB\u001b[0m(464KiB)\u001b[35m]\u001b[0m\u001b[0m0m\u001b[35m]\u001b[0m\u001b[0mm\n",
"===============================================================================\n",
"[#fa212b 1.4GiB/1.4GiB(99%) CN:38 SD:11 DL:12MiB UL:0B(464KiB)]\n",
"FILE: /home/linuxbrew/downloads/Horrible Bosses (2011) [1080p]/Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4 (1more)\n",
"-------------------------------------------------------------------------------\n",
"\n",
"\u001b[35m[\u001b[0m#fa212b 1.4GiB/1.4GiB\u001b[36m(99%)\u001b[0m CN:38 SD:11 DL:\u001b[32m12MiB\u001b[0m UL:\u001b[36m0B\u001b[0m(464KiB)\u001b[35m]\u001b[0m\u001b[0m\n",
"09/30 17:36:05 [\u001b[1;32mNOTICE\u001b[0m] Seeding is over.\n",
"\u001b[35m[\u001b[0m#fa212b SEED(0.0) CN:34 SD:2 UL:\u001b[36m0B\u001b[0m(464KiB)\u001b[35m]\u001b[0m\u001b[0m \n",
"09/30 17:36:06 [\u001b[1;32mNOTICE\u001b[0m] Download complete: /home/linuxbrew/downloads/Horrible Bosses (2011) [1080p]\n",
"\n",
"09/30 17:36:06 [\u001b[1;32mNOTICE\u001b[0m] Your share ratio was 0.0, uploaded/downloaded=464KiB/1.4GiB\n",
"\u001b[0m \n",
"Download Results:\n",
"gid |stat|avg speed |path/URI\n",
"======+====+===========+=======================================================\n",
"6e3e30|\u001b[1;32mOK\u001b[0m | 0B/s|[MEMORY][METADATA]Horrible+Bosses+(2011)+1080p+BrRip+X264:+YIFY\n",
"fa212b|\u001b[1;32mOK\u001b[0m | 8.2MiB/s|/home/linuxbrew/downloads/Horrible Bosses (2011) [1080p]/Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4 (1more)\n",
"\n",
"Status Legend:\n",
"(OK):download completed.\n"
]
}
],
"source": [
"!aria2c --seed-time=0 -i /home/linuxbrew/links.txt"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/lib/python3.9/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n",
"Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4: 0%| | 0.00/1.55G [00:00<?, ?B/s]\n",
"WWW.YTS.TO.jpg: 100%|ββββββββββ| 106k/106k [00:00<00:00, 1.15MB/s]\n",
"Horrible.Bosses.2011.1080p.BluRay.x264.YIFY.mp4: 100%|ββββββββββ| 1.55G/1.55G [00:21<00:00, 72.1MB/s]\n",
"Upload 2 LFS files: 100%|ββββββββββ| 2/2 [00:21<00:00, 10.90s/it]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"https://huggingface.co/datasets/snirjhar-colab/downloads/tree/main/30Sep2023\n"
]
}
],
"source": [
"from huggingface_hub import HfApi, login\n",
"import datetime\n",
"\n",
"api = HfApi()\n",
"\n",
"# Get the current date\n",
"current_date = datetime.datetime.now()\n",
"# Format the date as \"23apr2021\"\n",
"formatted_date = current_date.strftime(\"%d%b%Y\")\n",
"\n",
"out = api.upload_folder(\n",
" repo_id='snirjhar-colab/downloads',\n",
" repo_type='dataset',\n",
" folder_path='.',\n",
" commit_message=formatted_date,\n",
" path_in_repo=formatted_date,\n",
" ignore_patterns='.*',\n",
")\n",
"print(out)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
|