r0ld3x / terabox-downloader-bot Goto Github PK
View Code? Open in Web Editor NEWA telegram bot written in Python for downloading files from Terabox using the Terabox API
A telegram bot written in Python for downloading files from Terabox using the Terabox API
Task exception was never retrieved
future: <Task finished name='Task-26' coro=<handle_message() done, defined at /app/./main.py:139> exception=KeyError('dlink')>
Traceback (most recent call last):
File "/app/./main.py", line 202, in handle_message
data = get_data(url)
^^^^^^^^^^^^^
File "/app/terabox.py", line 167, in get_data
response = r.head(r_j["list"][0]["dlink"], headers=headersList)
~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'dlink'
Traceback (most recent call last):
File "/home/epiksam14/terabox-downloader-bot/main.py", line 9, in
from terabox import get_data, init_download
File "/home/epiksam14/terabox-downloader-bot/terabox.py", line 6, in
from tools import extract_surl_from_url, get_formatted_size
File "/home/epiksam14/terabox-downloader-bot/tools.py", line 301, in
async def is_user_on_chat(bot: Client, chat_id: int, user_id: int) -> ChatMember | bool:
TypeError: unsupported operand type(s) for |: 'type' and 'type'
File "C:\Users\hritu\OneDrive\Documents\GitHub\TeraBox3\main.py", line 9, in
from terabox import get_data, init_download
File "C:\Users\hritu\OneDrive\Documents\GitHub\TeraBox3\terabox.py", line 97, in
driver = webdriver.Chrome(keep_alive=chrome_driver_path, options=chrome_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\chromium\webdriver.py", line 61, in init
super().init(command_executor=executor, options=options)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 209, in init
self.start_session(capabilities)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 293, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 348, in execute
self.error_handler.check_response(response)
File "C:\Users\hritu\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory
How to Get headers and cookies , make a video on it
During handling of the above exception, another exception occurred:
2024-02-17T07:42:18.151319+00:00 app[worker.1]:
2024-02-17T07:42:18.151319+00:00 app[worker.1]: Traceback (most recent call last):
2024-02-17T07:42:18.151319+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/updates.py", line 561, in _dispatch_update
2024-02-17T07:42:18.151320+00:00 app[worker.1]: await builder.resolve(self)
2024-02-17T07:42:18.151320+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/common.py", line 99, in resolve
2024-02-17T07:42:18.151320+00:00 app[worker.1]: await self._resolve(client)
2024-02-17T07:42:18.151320+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/newmessage.py", line 94, in _resolve
2024-02-17T07:42:18.151320+00:00 app[worker.1]: self.from_users = await _into_id_set(client, self.from_users)
2024-02-17T07:42:18.151321+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151321+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/events/common.py", line 33, in _into_id_set
2024-02-17T07:42:18.151321+00:00 app[worker.1]: chat = await client.get_input_entity(chat)
2024-02-17T07:42:18.151321+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151322+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/users.py", line 439, in get_input_entity
2024-02-17T07:42:18.151322+00:00 app[worker.1]: await self._get_entity_from_string(peer))
2024-02-17T07:42:18.151322+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-17T07:42:18.151322+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/telethon/client/users.py", line 536, in _get_entity_from_string
2024-02-17T07:42:18.151323+00:00 app[worker.1]: raise ValueError('Cannot get entity by phone number as a '
2024-02-17T07:42:18.151324+00:00 app[worker.1]: ValueError: Cannot get entity by phone number as a bot (try using integer IDs, not strings)
update the readme and add full information. :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.