Giter Site home page Giter Site logo

x-gorn / bulkloader Goto Github PK

View Code? Open in Web Editor NEW
70.0 2.0 125.0 30 KB

Telegram bot to bulk download list of yt-dlp supported link and upload to telegram

License: GNU General Public License v3.0

Python 98.33% Procfile 0.15% Dockerfile 1.52%
bulk-download bulk pyrogram bot heroku telegram-bot docker dockerfile

bulkloader's Introduction

BulkLoader (Bot)


Telegram Bot to Bulk Downloading list of yt-dlp supported urls and Upload to Telegram.

Features:

Upload list of urls (2 methods):

  • send command /link and then send urls, separated by new line.
  • send txt file (links), separated by new line.
Environments

API_HASH: Get this from my.telegram.org

APP_ID: Get this from my.telegram.org

BOT_TOKEN: Get this from @BotFather on Telegram.

AS_ZIP: Set this to true if you want the bot to upload the files as zipfile. Default to false

BUTTONS: Set this to true if you want the bot to ignore AS_ZIP and send a button instead. Default to false

Deployments:

Docker

Install Docker

/bin/bash -c "$(curl -fsSL https://git.io/JDGfm)"

Refresh User State

sudo su -l $USER

Running Docker Server

docker run -d -e API_HASH=abc -e APP_ID=123 -e BOT_TOKEN="123:abc" -e OWNER_ID=12345678 -e AS_ZIP=false -e BUTTONS=true xgorn/bulkloader:latest

Heroku

Deploy

Telegram Support:

Group

Credits, and Thanks to

LICENSE

  • GPLv3

bulkloader's People

Contributors

x-gorn 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

Watchers

 avatar  avatar

bulkloader's Issues

#request

Will you be add zoom links and M3U8 support
In it

help

hi .
can you add deploy on heroku button to read me?

Bug

download getting stuck at the same file for so long

0

0

error

hi.
i upload a text file that contains these urls:
https://dl2.soft98.ir/soft/i/Internet.Download.Manager.6.38.Build.19.Portable.exe
https://dl2.soft98.ir/soft/i/Internet.Download.Manager.6.39.Build.2.CR.rar
https://dl2.soft98.ir/soft/i/Internet.Download.Manager.6.39.Build.2.Retail.exe

then i see this error (my bot log):

2021-08-26T06:36:36.023403+00:00 heroku[worker.1]: Starting process with command python3 bot.py
2021-08-26T06:36:36.626707+00:00 heroku[worker.1]: State changed from starting to up
2021-08-26T06:36:40.273258+00:00 app[worker.1]: Pyrogram v1.2.9, Copyright (C) 2017-2021 Dan https://github.com/delivrance
2021-08-26T06:36:40.273278+00:00 app[worker.1]: Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
2021-08-26T06:36:40.273279+00:00 app[worker.1]:
2021-08-26T06:43:09.489785+00:00 app[worker.1]: unknown url type: ''
2021-08-26T06:43:09.489802+00:00 app[worker.1]: Traceback (most recent call last):
2021-08-26T06:43:09.489802+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 217, in handler_worker
2021-08-26T06:43:09.489803+00:00 app[worker.1]: await handler.callback(self.client, *args)
2021-08-26T06:43:09.489803+00:00 app[worker.1]: File "/app/bot.py", line 148, in loader
2021-08-26T06:43:09.489803+00:00 app[worker.1]: download_file(url, dirs)
2021-08-26T06:43:09.489804+00:00 app[worker.1]: File "/app/bot.py", line 100, in download_file
2021-08-26T06:43:09.489804+00:00 app[worker.1]: dl = SmartDL(url, dl_path, progress_bar=False)
2021-08-26T06:43:09.489805+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pySmartDL/pySmartDL.py", line 136, in init
2021-08-26T06:43:09.489805+00:00 app[worker.1]: if not utils.is_HTTPRange_supported(self.url, timeout=self.timeout):
2021-08-26T06:43:09.489806+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pySmartDL/utils.py", line 100, in is_HTTPRange_supported
2021-08-26T06:43:09.489807+00:00 app[worker.1]: fullsize = get_filesize(url, timeout=timeout)
2021-08-26T06:43:09.489807+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pySmartDL/utils.py", line 127, in get_filesize
2021-08-26T06:43:09.489807+00:00 app[worker.1]: urlObj = urllib.request.urlopen(url, timeout=timeout)
2021-08-26T06:43:09.489808+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/urllib/request.py", line 214, in urlopen
2021-08-26T06:43:09.489808+00:00 app[worker.1]: return opener.open(url, data, timeout)
2021-08-26T06:43:09.489808+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/urllib/request.py", line 501, in open
2021-08-26T06:43:09.489809+00:00 app[worker.1]: req = Request(fullurl, data)
2021-08-26T06:43:09.489809+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/urllib/request.py", line 320, in init
2021-08-26T06:43:09.489809+00:00 app[worker.1]: self.full_url = url
2021-08-26T06:43:09.489810+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/urllib/request.py", line 346, in full_url
2021-08-26T06:43:09.489810+00:00 app[worker.1]: self._parse()
2021-08-26T06:43:09.489810+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/urllib/request.py", line 375, in _parse
2021-08-26T06:43:09.489810+00:00 app[worker.1]: raise ValueError("unknown url type: %r" % self.full_url)
2021-08-26T06:43:09.489811+00:00 app[worker.1]: ValueError: unknown url type: ''

[Feature Request]

Please add custom caption feature In normal way and in txt file also.
Thanks in advance ๐Ÿ˜ƒ

[Feature Request]

please add a support for a dump group that the downloaded videos goes to dump group

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.