Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
calebmayaka authored Mar 13, 2024
1 parent fa21f98 commit edd3360
Showing 1 changed file with 42 additions and 30 deletions.
72 changes: 42 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
Torrent Downloader using Google Colab
This script facilitates downloading torrents directly to your Google Drive using Google Colab. It employs libtorrent to handle torrent downloads and requires minimal setup.

Getting Started
Prerequisites
Access to Google Colab (https://colab.research.google.com/)
Google Drive storage for downloading torrents
Basic understanding of using Colab notebooks
Installation
Mount Google Drive to the notebook environment by running the provided code block:

python
Copy code
from google.colab import drive
drive.mount('/content/drive')
Install dependencies by executing the following commands:
# Torrent Downloader using Google Colab

bash
Copy code
!python -m pip install --upgrade pip setuptools wheel
!python -m pip install lbry-libtorrent
Usage
Execute the script in a Colab notebook environment.
When prompted, paste the torrent/magnet link into the input field.
The script will start downloading the torrent to the specified location in your Google Drive.
Example
python
Copy code
This script facilitates downloading torrents directly to your Google Drive using Google Colab. It employs `libtorrent` to handle torrent downloads and requires minimal setup.

## Getting Started

### Prerequisites

- Access to Google Colab (https://colab.research.google.com/)
- Google Drive storage for downloading torrents
- Basic understanding of using Colab notebooks

### Installation

1. Mount Google Drive to the notebook environment by running the provided code block:

```python
from google.colab import drive
drive.mount('/content/drive')
```

2. Install dependencies by executing the following commands:

```bash
!python -m pip install --upgrade pip setuptools wheel
!python -m pip install lbry-libtorrent
```

## Usage

1. Execute the script in a Colab notebook environment.
2. When prompted, paste the torrent/magnet link into the input field.
3. The script will start downloading the torrent to the specified location in your Google Drive.

## Example

```python
# Mount Google Drive
from google.colab import drive
drive.mount('/content/drive')
Expand Down Expand Up @@ -75,6 +84,9 @@ print(handle.name(), "COMPLETE")
print("Elapsed Time: ", int((end - begin) // 60), "min :", int((end - begin) % 60), "sec")

print(datetime.datetime.now())
Notes
Make sure you have sufficient space in your Google Drive for downloading large files.
This script runs in the Colab environment, so ensure continuous internet connectivity during the download process.
```

## Notes

- Make sure you have sufficient space in your Google Drive for downloading large files.
- This script runs in the Colab environment, so ensure continuous internet connectivity during the download process.

0 comments on commit edd3360

Please sign in to comment.