HUB

YT

GUI Showcase

PyTube + Discord | Python | VS Code

Synopsis:

YouTube HUB is a lightweight application built on Python that enables the user to download YouTube videos by simply providing it's link. The project underwent significant changes, evolving from a command-line tool to a full GUI application then a Discord Bot.

Discord Bot:

After finishing the GUI implementation of the tool, I wanted make it more accessible among my friend group and decided to migrate the project to Discord as a Bot/Application. The idea was to create a bot that behaved like a server member who would run the download script and resend any YouTube videos with their @-tag as mp4 or mp3 files.

Flagging:

Inserting "audio" in the message will flag for an mp3 file. The formatting of the message is fairly liberal since there is a dedicated parsing method that evaluates the contents of the message without necessarily tracking order, making proper usage lenient and user-friendly. Thankfully, Python makes this process really easy

Discord API interaction:

The majority of the logic is handled in Discord API's message event handler. The parsing, video downloading, mp3 conversion were handled in their own separate methods primarily for organization and readability.

Some of its responses:

Just for fun

CustomTKinter:

Built on top of Python's standard GUI library TKinter, CustomTKinter implements additional features and functionalities alongside a more modern, sleek design. Python has a wide assortment of GUI libraries but I ultimately chose this one due to its packing feature, which negates pixel-coordinate placement for the majority of GUI elements.