OP 05 November, 2019 - 12:56 PM
(This post was last modified: 05 November, 2019 - 01:07 PM by cenahum.)
Have you ever thought of downloading a Torrent and saving it directly to Google Drive? I found one trick to do this using Google Colab and you will be able with 2 lines of code.
First open Google Colab and click ‘New Python 3 Notebook’. If you have ever used Jupyter Notebook you know what to do.
Open Runtime and change runtime type to GPU ( be sure that you are using Python 3).
after this you look at the right and press connect, choose hosted runtime
wait until ok
Go to left side bar and choose Files in menu and MOUNT DRIVE
Execute that script and you will get the link to auth your account. Click the link, select your account that you want to use as a google drive storage. Allow the permission and you will get the code to auth your Gdrive. Copy the code, back to your Notebook, paste the code in the box under the sentence ‘Enter your authorization code:’, then click enter.
If is ok you will see you will see your drive in the sidebar by expand ‘drive’ folder
Now install transmission-cli and you can download torrent with command line using transmission-cli. If you often use Linux and prefer to use other programs besides transmission-cli, go for it. Install transmission-cli by executing this command in block code.
line of code
!apt-get install transmission-cli
wait install complete
Now you are able to start your torrent download
Let’s see, ‘/content/drive/My Drive’ is your root Gdrive folder. If you want to download the file to subfolder, just add the name of the subfolder at the end.
Here is how to download torrent use this code and your torrent link
!transmission-cli -w '/content/drive/My Drive' https://the place with torrent.any/download/name of file.torrent
Wait until your file is downloaded and you will see the file in your drive.
ps: you can change the location whre you will put the file, and you also can use magnet link
Very easy and also very fast
Voila
Enjoy!!!!!
First open Google Colab and click ‘New Python 3 Notebook’. If you have ever used Jupyter Notebook you know what to do.
Open Runtime and change runtime type to GPU ( be sure that you are using Python 3).
after this you look at the right and press connect, choose hosted runtime
wait until ok
Go to left side bar and choose Files in menu and MOUNT DRIVE
Execute that script and you will get the link to auth your account. Click the link, select your account that you want to use as a google drive storage. Allow the permission and you will get the code to auth your Gdrive. Copy the code, back to your Notebook, paste the code in the box under the sentence ‘Enter your authorization code:’, then click enter.
If is ok you will see you will see your drive in the sidebar by expand ‘drive’ folder
Now install transmission-cli and you can download torrent with command line using transmission-cli. If you often use Linux and prefer to use other programs besides transmission-cli, go for it. Install transmission-cli by executing this command in block code.
line of code
!apt-get install transmission-cli
wait install complete
Now you are able to start your torrent download
Let’s see, ‘/content/drive/My Drive’ is your root Gdrive folder. If you want to download the file to subfolder, just add the name of the subfolder at the end.
Here is how to download torrent use this code and your torrent link
!transmission-cli -w '/content/drive/My Drive' https://the place with torrent.any/download/name of file.torrent
Wait until your file is downloaded and you will see the file in your drive.
ps: you can change the location whre you will put the file, and you also can use magnet link
Very easy and also very fast
Voila
Enjoy!!!!!