GithubHelp home page GithubHelp logo

useless-sam / google-drive-torrent-downlaoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shubham8550/google-drive-torrent-downlaoder

0.0 0.0 0.0 9 KB

Using This python .ipynb Script on Google Colab you can directly Transfer/download Torrent in your Google Drive Account

License: MIT License

Jupyter Notebook 100.00%

google-drive-torrent-downlaoder's Introduction

Open In Colab

Using This python .ipynb Script on Google Colab you can directly Transfer/download Torrent in your Google Drive Account


Open In Colab

How To? Open This Script in google colab change magnet link in 4th cell And Run Each Cell One By One As mentioned Below.

Step 1 : install libtorrent Package

!apt-get install python3-libtorrent

Step 2 : Import libtorrent

import libtorrent as lt

Step 3 : Mount your Google Drive

from google.colab import drive

drive.mount('/content/gdrive2')

Step 4 : Replace your Magnet Link And Run Cell ,And thats It. Have a Fun !!

import libtorrent as lt
import time

ses = lt.session()
params = { 'save_path': '/content/gdrive2/My Drive'}
link = "magnet:?xt=urn:btih:d72af2a6f1b29537399db84a5093287d9a3fecee&dn=Unity-2020.1.16f1"
handle = lt.add_magnet_uri(ses, link, params)

print('downloading metadata...')
while (not handle.has_metadata()): time.sleep(1)
print('got metadata, starting torrent download...')
while (handle.status().state != lt.torrent_status.seeding):
    print('%d  %% done' % (handle.status().progress*100))
    time.sleep(1)

Repository :https://github.com/shubham8550/Google-Drive-Torrent-Downlaoder

Star My Repository and follow me on Github.

google-drive-torrent-downlaoder's People

Contributors

shubham8550 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.