Answer the question
In order to leave comments, you need to log in
How to use third party applications in a script (python)?
I want to write a telegram bot that converts videos from YouTube to mp3 and sends a file in correspondence, which you can then listen to. There are online converters, and there is a desktop program that converts. I now think that it would be more reliable to implement it through a desktop program, which, as I think, can be stuffed into a folder with a bot and opened. In this case, you need to take into account that the bot will be located on the hosting server.
Advise how (with the help of what libraries) you can implement the opening of third-party programs and their use?
Answer the question
In order to leave comments, you need to log in
Using youtube_dl you can download immediately and convert to mp3
Example: https://github.com/ytdl-org/youtube-dl/blob/master...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question