Torrent To Google Drive Downloader V1
https://colab.research.google.com/github/FKLC/Torrent-To-Google-Drive-Downloader/blob/master/Torrent_To_Google_Drive_Downloader.ipynb
Torrent To Google Drive Downloader V1
https://colab.research.google.com/github/FKLC/Torrent-To-Google-Drive-Downloader/blob/master/Torrent_To_Google_Drive_Downloader.ipynb
Source Code (只列出相關部分)
————————————————————————————————————————
### Add From Torrent File
You can run this cell to add more files as many times as you want
from google.colab import files
source = files.upload()
params = {
“save_path”: “/content/drive/My Drive/Torrent”,
“ti”: lt.torrent_info(list(source.keys())[0]),
}
downloads.append(ses.add_torrent(params))
————————————————————————————————————————
### Add From Magnet Link
You can run this cell to add more files as many times as you want
params = {“save_path”: “/content/drive/My Drive/Torrent”}
while True:
magnet_link = input(“Enter Magnet Link Or Type Exit: “)
if magnet_link.lower() == “exit”:
break
downloads.append(
lt.add_magnet_uri(ses, magnet_link, params)
)