Files

23 lines
430 B
Python
Raw Permalink Normal View History

2026-05-19 20:06:12 +06:00
import asyncio
import argparse
from torrentp import TorrentDownloader
def argsuments():
{}
async def main():
torrent_file = TorrentDownloader("test.torrent", ".")
# Добавляем ключевое слово await перед вызовом функции
await torrent_file.start_download()
'''
параметры запуска
-h help
file output
'''
if __name__ == "__main__":
asyncio.run(main())