Giter VIP home page Giter VIP logo

torrent-leech-bot's Introduction

For Support join here MoviezOnlySupport

Working example group Leech Here

Telegram Torrent Leecher ๐Ÿ”ฅ๐Ÿค–

A Telegram Torrent (and youtube-dl) Leecher based on Pyrogram

This is a leech to FILE repo! Leech to STREAM(video) availabe here > Stream

Deploy

Benefits :-

โœ“ Telegram File mirrorring to cloud along with its unzipping, unrar and untar
โœ“ Drive/Teamdrive support/All other cloud services rclone.org supports
โœ“ Unzip
โœ“ Unrar
โœ“ Untar
โœ“ Custom file name
โœ“ Custom commands
โœ“ Get total size of your working cloud directory
โœ“ You can also upload files downloaded from /ytdl command to gdrive using `/ytdl gdrive` command.
โœ“ You can also deploy this on your VPS
โœ“ Added /clearall command to clear the downloads which are not deleted automatically.
โœ“ Added support for youtube playlist ( use /pytdl )

Credit goes to SpEcHiDe for his Publicleech repo & GautamKumar for his repo

Installing

HEROKU SUPPORT REMOVED

IT's BETTER THAT WAY !!

The Legacy Way

Simply clone the repository and run the main file:

an example config.py ๐Ÿ‘‡

from tobrot.sample_config import Config

class Config(Config):
  TG_BOT_TOKEN = ""
  APP_ID = ""
  API_HASH = ""
  AUTH_CHANNEL = ""
git clone https://github.com/prgofficial/TorrentLeech-GDriVe
cd TorrentLeech-GDriVe
virtualenv -p python3 VENV
. ./VENV/bin/activate
pip install -r requirements.txt
python3 -m tobrot

YOU NEED UNLIMITED TEAM/SHARE DRIVE IN ORDER TO USE THE GDRIVE FUNCIONS Flawlessly (normal GDRIVE has 15 gb of storage only)

Set Rclone
  1. Download Rclone from Here > DOWNLOAD

  2. Extract the downloaded zip file and run cmd(hold shift and right click) from the Extracted folder.

  3. RUN rclone config and follow the onscreen instructions!

  4. If done Correctly, you'll get some thing like this in the cmd ;

    type = drive client_id = 55965362181-5105rlkk8dq8ej3iopmfc0.apps.googleusercontent.com client_secret = VOqihw0cqXPCdDo7UR scope = drive token = {"access_token":"ya29.a0ASMA0zZmcJHRao_Et9YqPrSRq0hZBdVElo4TUIP_1R6DJx4vWzd- 00MbrlZdmH3sTRnOYhseTsEqKXcBfleu4yTfpeTJjAmaUCYkIsYuEsj608ncZEM3QZVnjnA7c7- TeI","token_type":"Bearer","refresh_token":"1//0gOjRXzVHCgYIARAAGBASNwF-L9IrdBJRlXXUqUvOES7H4Ge3UDhy7mJLvJcROd9XQsI6e8zJsHQ88cw","expiry":"2020-07- 02T10:17:13.1076684+02:00"} team_drive = 0AAHdpck9PVA

  5. Copy these entries from CMD and paste it in ' RCLONE_CONFIG ' {heroku var} - Don't try to copy paste the above string; It wont work ๐Ÿคฃ.

Set IndexURL
  1. Go to https://gdindex-code-builder.glitch.me/, and follow its instructions. Copy the code!
  2. Go to https://dash.cloudflare.com/c8bf985554bb03b455f683f8cafe25f2/workers/new and login/signup.
  3. Paste the code in script section. Then save and deploy.
  4. You'll get your GDIndex link.
  5. Add new key in HEROKU Vars - ' INDEX_LINK ' and add the above index link as value

HOPE Everything will be working by now! For any support ping me here > MoviezOnlySupport

FAQ

  • INDEX_LINK: (Without / at last of the link, otherwise u will get error) During creating index, plz fill Default Root ID with the id of your DESTINATION_FOLDER after creating. Otherwise index will not work properly.

Available Commands

  • /ytdl: This command should be used as reply to a supported link

  • /leech: This command should be used as reply to a magnetic link, a torrent link, or a direct link. [this command will SPAM the chat and send the downloads a seperate files, if there is more than one file, in the specified torrent]

  • /leech archive: This command should be used as reply to a magnetic link, a torrent link, or a direct link. [This command will create a .tar.gz file of the output directory, and send the files in the chat, splited into PARTS of 1024MiB each, due to Telegram limitations]

  • /gleech: This command should be used as reply to a magnetic link, a torrent link, or a direct link. And this will download the files from the given link or torrent and will upload to the drive using rclone.

  • /gleech archive This command will compress the folder/file and will upload to your google drive.

  • /leech unzip: This will unzip the .zip file and dupload to telegram.

  • /gleech unzip: This will unzip the .zip file and upload to drive.

  • /leech unrar: This will unrar the .rar file and dupload to telegram.

  • /gleech unrar: This will unrar the .rar file and upload to drive.

  • /leech untar: This will untar the .tar file and upload to telegram.

  • /gleech untar: This will untar the .tar file and upload to drive.

  • /tleech: This will mirror the telegram files to ur respective cloud drive.

  • /tleech unzip: This will unzip the .zip telegram file and upload to drive.

  • /tleech unrar: This will unrar the .rar telegram file and upload to drive.

  • /tleech untar: This will untar the .tar telegram file and upload to drive.

  • /getsize: This will give you total size of your destination folder in cloud.

Process to run this BOT on VPS

  • Clone this repo:
git clone https://github.com/gautamajay52/TorrentLeech-Gdrive 
cd TorrentLeech-Gdrive
  • Install requirements For Debian based distros
sudo apt install python3

Install Docker by following the official docker docs

Setting up config file

cp tobrot/g_config.py tobrot/config.py

Follow and fill all the required variables that were already filled in the sample config file, but with your details. And you can also fill all other variables according to your need and all those are explained above already.

Deploying

  • Start docker daemon (skip if already running):
sudo dockerd
  • Build Docker image:
sudo docker build . -t TorrentLeech-Gdrive
  • Run the image:
sudo docker run TorrentLeech-Gdrive

Credits, and Thanks to

torrent-leech-bot's People

Contributors

gauravtdhumal avatar prgofficial 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.