Coder Social home page Coder Social logo

spechide / publicleech Goto Github PK

View Code? Open in Web Editor NEW
424.0 25.0 997.0 387 KB

can be found on Telegram as https://telegram.dog/PublicLeechGroup

License: GNU Affero General Public License v3.0

Python 96.22% Dockerfile 2.56% Shell 1.22%
leech youtube-dl telegram unlimited torrent video file upload group management bot hacktoberfest

publicleech's Introduction

Torrent / YouTube Leecher ๐Ÿ”ฅ๐Ÿค–

A Torrent, youtube-dl Leecher, and Uploader!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the COPYING for more details.

installing

The Eas(iest) Way

  • Install Docker by following the official docker docs

  • Start docker daemon [skip if already running]:

dockerd
  • Build Docker image:
docker build . -t publicleech
  • Run the image:
docker run publicleech

It is not recommended to use "sudo", un-necessarily, in a GNU/Linux system. GNU/Linux Permissions are highly customisable, and it is generally not required to have "ROOT" permission, unless you know what you are doing. You can still install all the dependencies in your system [with ROOT permissions], but please be aware of the potential issues when doing so. The installed packages may conflict with the system package manager's installed packages, which can cause trouble down the road and errors when upgrading conflicting packages. You have been warned.

The Legacy Way

Simply clone the repository and run the main file:

git clone https://github.com/SpEcHiDe/PublicLeech.git
cd PublicLeech
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m publicleechgroup

Variable Explanations

Mandatory Variables
  • TG_BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.

  • APP_ID

  • API_HASH: Get these two values from my.telegram.org/apps.

    • N.B.: if Telegram is blocked by your ISP, try our Telegram bot to get the IDs.
  • AUTH_CHANNEL: Create a Super Group in Telegram, add @GoogleIMGBot to the group, and send /id in the chat, to get this value. You can add multiple IDs seperated by space.

Optional Configuration Variables
  • SHOULD_USE_BUTTONS: because, BlameTelegram

  • ARIA_TWO_STARTED_PORT: The port on which aria2c daemon must START. This should be an integer, between 1001 and 65535.

  • EDIT_SLEEP_TIME_OUT: The number of seconds to sleep after editing a Telegram message.

  • MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START: The number of seconds to wait before auto-cancelling a dead link.

  • FINISHED_PROGRESS_STR: any character(s) that might be displayed in the progress string.

  • UN_FINISHED_PROGRESS_STR: any character(s) that might be displayed in the progress string.

  • TG_OFFENSIVE_API: DO NOT USE THIS.

  • R_CLONE_CONF_URI: a help, maybe

  • R_CLONE_DEST: Destination folder for rclone copying. Set your path starting with '/'. Or just leave '/' to set root folder

  • DOWNLOAD_LOCATION: optional download directory, where the temporary downloads should ideally reside.

  • MAX_FILE_SIZE: The maximum file_size allowed by Telegram BOT API, kept for legacy purposes.

  • TG_MAX_FILE_SIZE: The maximum file_size, allowed by Telegram API.

  • FREE_USER_MAX_FILE_SIZE: The file_size that was supposed to be allowed by the bot.

  • MAX_TG_SPLIT_FILE_SIZE: The file_size at which it should be splitted if the file_size is greater than TG_MAX_FILE_SIZE.

  • CHUNK_SIZE: not used, kept for legacy purposes.

  • MAX_MESSAGE_LENGTH: The maximum message length, allowed by Telegram.

  • PROCESS_MAX_TIMEOUT: not used, kept for legacy purposes.

  • SP_LIT_ALGO_RITH_M: allowed values can be hjs or rar.

    • VIDEO files are not affected based on this value.
  • DIS_ABLE_ST_GFC_COMMAND_I: setting this to ANYTHING will enable /exec and /eval commands.

Available Commands

  • The available commands depends on the ENVironment / CONfig variables that is set by you.
  • You can read the Commandi file, to know about the ENVironment variables to use.
  • You can read the Loilacaztion file, to know about the ENVironment variables to use.

How to Use?

  • send any link, and click on the available buttons.

  • if you have disabled SHOULD_USE_BUTTONS, you can read the Commandi file, to know about the commands.

    • COMMANDI_LEECH can take multiple arguments
      • archive: if you want a .tar.gz file, in your Telegram Chat.
      • leech_rc_0: if you want to mirror to an rClone supported host, 0 is an example, and should be replaced with the index of your required host, in your uploaded rclone.conf file.
  • if file is larger than TG_MAX_FILE_SIZE, read this.

  • if file is a TAR archive, read this to know how to uncompress.

Issues or Feature Requests

  • search for known issues, here or in the GitHub Issues.

  • add issues / feature requests, here.

  • the GitHub Issue Tracker is only for Issue / Feature Requests. For any support, please use the Telegram Group.

Credits, and Thanks to

publicleech's People

Contributors

akshaychinnan avatar dependabot[bot] avatar gautamajay52 avatar sayanthd avatar spechide avatar yash-dk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

publicleech's Issues

Captions Problem!

Youtube-dl has incorrect captions, not containing any symbols, It's taking file name instead of Title.

Downloading of certain youtube as mp3

Hello, we already spoke, some videos can't be uploaded as mp3... It just stays at "downloading" process. Actually its the Link i posted below for which i try to figure out the error. Some others working fine... It didn't "upload" as 64kb, 128kb or 320kb. As video its fine, but the filesizes aren't exact, at 144p its telling 456mb but its actually 1,1gb uploading :-D

However, the problem is as Music file....

https://youtu.be/ntu4ik4otfo

Bot stuck when downloading

I have problem, bot stuck with reason FLOOD_WAIT_X
im guess i need add some env to message sending timeout or so but i`m dont know whats the var is

image

image

image

custom split file size

please add a various when deploying heroku for custom split file size.
we can change it without the need to fork.

Pinned Message Not Working

Any member join group than bot send automatically message in this message please read pinned message...
User click on this message it's not open and show error message doesn't exist

Default Caption By text or Excel file

User upload text file to bot to set caption
Example file.txt content

Episode 01
Episode 02
Episode 03
Episode 04+05

Bot send video With caption in this example bot send video number 04 with caption Episode 04+05
Thanks SpaceHide

How to unzip tar.gz

I tried unzipping files obtained by /leech archive, but it always gives me the error "unexpected end of archive"

Also the link in your readme for the samd has expired, so olz help me out.

Request Seed and peers info

Request to create a seeds and peers information on downloading . It's helpful for members . Thank you !!!!!๐Ÿ’

Speed low and magnet link not working

Speed low when I leech it , megnet link then i paste it it's not working !!! Please solve this problem . Thank you for create this torrent leech it's helpful few problem that's all !!!๐Ÿ’

Unable to deploy

Sir deploy option is not being showed.
Please do help me in deploying at heroku
Deploy to heroku not showing

Feature to upload in cloud service!

Add a feature to upload in gdrive. If not gdrive, then atleast use transfer.sh as uploading to telegram doesn't makes any sense. The downliad speed is slow compared to other services, also, it will save time.

change split algorithm #TBD

please add a split that supports WinRAR because most users use WinRAR application.

Sorry if my English is not good

Leech through torrent file?

How to download the torrent from torrent file instead of magnet links?

I tried to download to torrent file, leecher doesn't work as intended.

Any options?

Help

How to cancel upload and how to delete file from cloud or does it not affect anything
And how much can I lecch daily is there a storge in cloud for bot and how much

upload getting timed out

Thank you for this great repository.
I don't know why but bot not working well for me.

1 - After a few seconds it stops updating progress bar.
2 - Nothing happens after download is finished. A few time trying /leech its finally starting upload.
3 - Sometimes it stops before all the uploads are finished.

Am i doing something wrong?
Config Vars

Sorry for my bad English and thank you again.

How to boost speed

How to speed boost sir to download because i have torrent with 1k+ seed but download speed is 48kbps to 100kbps

Thank You Advance

Only one YouTube process is supported at a time.

"The reason is the file gets downloaded in your TMP DOWNLOAD LOCATION, so if another process completes before the first one, whatever is downloaded upto that point gets uploaded. (maybe PART files)"

Maybe delete all previous yt files before starting a new one or add a queue? or a /cleartmp command to clear your temp folder.. Or just abort second dl request...?

No Tagging after Finished Upload

Hello, i updated to newest PublicLeech but it doesn't tag the User after a completed finished queue anymore. Is it a bug or a feature?

G drive Upload Request

I want to move gdrive for torrent leech ??? How to set that ???

E.g
GDrive Link : bj17338-1080p_2.mp4 (1.15GB)

Shareable Link : Here

Feature Request: Cancel Option

When In Leeching, Add An Option To Cancel When Uploading Files, Not Only When Downloading & Also Add this Feature In Youtube-dl.

Issue with Hotstar links

Even though Hotstar is listed as a supported website, it doesn't work at all. Whenever Hotstar link is replied with /ytdl it uploads a clip of 30 seconds stating this version of Hotstar is no longer supported.

Splitting Videos

Videos with /ytdl above 1,5GB are splitted, but the last part is missing everytime. Example with 2,29GB it splits into 2x1GB but 290MB are lost. 1,5gb are splitted in 1 file (lol) with 1gb and 500MB are lost..

Hi

Please fix part mkv and mp4 and...

Format for splitting files

Feature request: Bot gives you an option to choose files from a list of files in a torrent

Feature:

  • when a user replied with a magnet/torrent link, the bot replies with a list of folders and files from the magnet/torrent link and gives you an option to choose the folders or files that the user can leech/download from.

Benefit:

  • it's very useful when a user wants to leech from a much bigger file size of a torrent (eg: 100+ GB) since this issue #58 seems always occurred whenever a user tried to leech a big file size of a torrent and it stopped halfway and never finishes a task.

But, I do wonder if my feature request is plausible to implement?

App Buttons are not responding

In group after postinga link or magnet 4 buttons appears but they are not responding

i am getting this two errors while starting the app in Heroku

2020-07-06T01:47:37.489549+00:00 app[worker.1]: /app/.heroku/python/lib/python3.8/site-packages/hachoir/parser/misc/pdf.py:395: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?

2020-07-06T01:47:37.489554+00:00 app[worker.1]: raise ParserError("Can't find '%s' starting at %u"

Then the app starts normally as follows

2020-07-06T01:47:37.667551+00:00 app[worker.1]: 2020-07-06 01:47:37,667 - asyncio - DEBUG - Using selector: EpollSelector
2020-07-06T01:47:39.096820+00:00 app[worker.1]: Pyrogram v0.17.1-async, Copyright (C) 2017-2020 Dan https://github.com/delivrance
2020-07-06T01:47:39.096831+00:00 app[worker.1]: Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
2020-07-06T01:47:39.096832+00:00 app[worker.1]:
2020-07-06T01:47:39.182479+00:00 app[worker.1]: 2020-07-06 01:47:39,182 - root - INFO - NetWorkerTask started
2020-07-06T01:47:40.329933+00:00 app[worker.1]: 2020-07-06 01:47:40,329 - root - INFO - NetWorkerTask started
2020-07-06T01:47:40.619483+00:00 app[worker.1]: 2020-07-06 01:47:40,619 - root - INFO - Started 4 UpdatesWorkerTasks
2020-07-06T01:47:40.619844+00:00 app[worker.1]: 2020-07-06 01:47:40,619 - root - INFO - Started 4 DownloadWorkerTasks
2020-07-06T01:47:40.627258+00:00 app[worker.1]: 2020-07-06 01:47:40,627 - root - INFO - Started 343 UpdateWorkerTasks

Please help if possible

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.