How to download videos from YouTube with Python on Unix based machines

There are times when one needs to download videos from the famous online platform YouTube, be it a movie with episodes or material related to studies. Although many tools which can help the user to easily download videos from YouTube exist on the Internet, most of them do not offer the functionalities that meet the requirements of a heavy Python geek. Continue reading “How to download videos from YouTube with Python on Unix based machines”

How to write your first class in Python

Many beginners on the path of learning the Python computer programming language face a lot of struggle when they deal with intermediate concepts and utilities such as functions and classes. Having experienced a lot of struggle myself with class objects in the beginning of my journey as a coder, I decided to share some knowledge with the main purpose of easing the learning process of those passionate beginners who are completely new to some of the most important concepts in object oriented programming. Continue reading “How to write your first class in Python”

How to properly read and write a text file with Python

The Python computer programming language is so rich in features that it offers many ways to accomplish a specific task, but based on my personal experience with it, only a few ways are being used and accepted by those who get paid to write professional code daily. Not that it is totally wrong to write the code in your own way, but it is highly recommended to stay updated with the best practices which very skilled computer programmers make use of.
Continue reading “How to properly read and write a text file with Python”

Five ffmpeg commands every video geek should know about

FFmpeg is a leading multimedia framework which offers command line utilities to deal with video, audio and image files. Having some experience with FFmpeg, I can truly say that it is a great framework which can be utilized by the heavy computer geek to process their multimedia files. Not only is the FFMpeg multimedia framework free of charge, but it is also open source, which means that those who have some coding experience in the C programming language can study its components and also customize them based on their specific needs. Continue reading “Five ffmpeg commands every video geek should know about”

How to simply handle errors when importing modules in Python

Based on my personal experience with the Python computer programming language, the builtin import statement is being used to make use of different modules part of the Python technology.

For example, when a Python coder needs the functionalities included in the os builtin module, they have to import it by making use of the code which is shown below. Continue reading “How to simply handle errors when importing modules in Python”

How to find the email address from a Python string by using a custom regular expression

Regular expressions are very useful to the Python coder, especially if they have to deal with a lot of output in the form of text. Through this tutorial, you will learn how to find an email address from a Python long string object by making use of the regular expressions. Continue reading “How to find the email address from a Python string by using a custom regular expression”

How to find a pattern with re.search in a Python string

Regular expressions are very useful to the Python geek, especially when they have to deal with a lot of data which comes in the form of text. Being very rich in features, the Python computer programming language comes with a builtin module which offers the functionalities and utilities to construct regular expressions based on the coder’s needs. Continue reading “How to find a pattern with re.search in a Python string”