background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Три программы на Python для твоего портфолио на GitHub"

input logo icon
Video tags
|

Video tags

python
python программирование
python для начинающих
python обучение
python 3
python tutorial
парсинг
уроки python
программы на python
фриланс
python уроки
практика python
программа на python
питон с нуля
питон для начинающих
программирование
шифрование файлов
шифрование
шифрование python
python encrypt
python aes
pyaescrypt
moviepy
pypdf2
python pdf
python video
python audio
github
python github
python бот
бот на python
pythonprogramming
python3
encryption
aes
pdf
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:07
friends Hello everyone, you are on the
00:00:10
pythontoday channel and today we will write
00:00:13
three projects with less than 10 lines of code
00:00:16
each, all the code from the video as well as links
00:00:18
to the libraries used can be found in
00:00:21
our Telegram channel Subscribe
00:00:23
the link will be in the description Today we
00:00:26
will learn how to encrypt files, which is very
00:00:28
It’s important to carry out hidden
00:00:30
password entry and also extract an audio track from a
00:00:33
video file, which for me personally turned out to be
00:00:36
very useful, especially in conjunction with a
00:00:38
telegram bot. You throw a
00:00:40
video file into the Bot and it gives you an easy
00:00:43
audio podcast that you can listen to
00:00:45
even on the plane, while driving, or while
00:00:48
jogging. it is important What program you
00:00:51
wrote A bot or a full-fledged website,
00:00:54
sooner or later you will have to
00:00:57
deploy any project on a server First vds is a
00:00:59
large hosting provider that has been on
00:01:02
the market for 20 years. On December 6, the guys started
00:01:06
celebrating their anniversary. In honor of this holiday,
00:01:08
they launched a cool promotion, what will happen on
00:01:12
December 6 There will be discounts, entertaining
00:01:15
statistics for clients, a raffle for
00:01:18
Apple equipment and the Festrunner game, the First
00:01:21
Runner game was created by the developers
00:01:23
specifically for the 20th anniversary of the VDS Fest,
00:01:26
participants are invited to help Fez John
00:01:28
run from slow 2002 to
00:01:31
super fast 2022 Play, look for
00:01:35
Easter eggs, enter the top and receive
00:01:38
additional gifts for each client
00:01:41
who plays the game, you have
00:01:43
the opportunity to win a MacBook iPhone
00:01:45
PlayStation or certificates for the balance
00:01:48
VDS Fest will be waiting for everyone on the
00:01:51
promotion page from December 6th to 13th,
00:01:54
join via the link in the description
00:01:57
Okay, let's start by extracting the audio track, the
00:02:00
wonderful Movie Pie module will help us with this,
00:02:02
install it in Our
00:02:04
virtual environment By the way,
00:02:06
the possibilities of the field are essentially limitless when
00:02:09
working with media files. You can not
00:02:12
only extract audio tracks, but also, for
00:02:14
example, Trim a video to the required
00:02:16
moments, compress files several times
00:02:18
without actually losing quality, and even
00:02:21
work with subtitles. Let’s import the
00:02:23
Editor module from movipie.
00:02:27
First of all, we’ll specify module What
00:02:29
file does it need to work with
00:02:31
[music]
00:02:33
We turn to the videofileclip class and in the
00:02:37
parameters We pass the path to our file
00:02:39
in my case the file is located next to the
00:02:42
executable script So I’ll just
00:02:43
pass the name then we get the audio track
00:02:47
from the file by referring to the dio attribute
00:02:49
if we look under the hood then we will see that
00:02:52
this is an object of the class audio-file clip. The
00:02:55
last thing we have to do is
00:02:58
save the audio track file. We turn to the
00:03:01
file method in the parameter of which
00:03:03
we pass the name of the file,
00:03:08
we try to run the script
00:03:15
[music]
00:03:18
and Voila next to the executable file. We
00:03:22
have an audio file. We are testing,
00:03:28
we wanted to solve the problem with using the library
00:03:31
Okay, the next thing we need to do is if
00:03:33
you have more experience in working with this
00:03:35
library
00:03:39
Okay, let's set the necessary one, get the
00:03:43
file name using the Stem property. Everything is ok.
00:03:46
Yes, we could write code that takes
00:03:48
the name of the video file and creates an audio file
00:03:51
With the same name, let's correct
00:03:54
this with that Moreover, this will only add a couple of
00:03:56
lines of code, but I think it will be very useful.
00:03:59
We import the PAZ class from the pas sleep module
00:04:04
and get the path to our video file,
00:04:09
then we pass the path to the video file class
00:04:12
as before,
00:04:16
but for the name of the audio file we use the
00:04:19
properties of the walls, which takes only
00:04:22
the name but discards it extension,
00:04:24
rename the video file,
00:04:31
run a script
00:04:45
that will take two parameters,
00:04:48
display the original file name and everything
00:04:52
is ok, the next program we will
00:04:54
write will encrypt files with text using the
00:04:57
symmetric NPP block cipher algorithm,
00:05:01
you can read more about this algorithm in Google in
00:05:04
Python there is a wonderful and
00:05:06
very popular one for this pyascript module
00:05:09
install it
00:05:15
import first
00:05:19
ask the user for a
00:05:21
password yes As you already know, the
00:05:24
Input function allows us to temporarily
00:05:26
pause the execution of the program and
00:05:28
waits while the user enters data
00:05:30
showing the data itself in the terminal for
00:05:33
securely entering a password in Python there is a
00:05:35
special function that we will
00:05:37
look at in the next program So
00:05:39
watch the video to the end, first of all, let's
00:05:42
encrypt the file, create the file itself with
00:05:45
some random text
00:05:48
and call the module's encrypt file method
00:05:52
in the parameter of which, as the first argument,
00:05:54
we pass the file that we want to
00:05:56
encrypt, then the name of the encrypted
00:05:59
file on the output
00:06:02
and the last argument we specify the password,
00:06:05
try to run script,
00:06:08
enter the password
00:06:12
and get the encrypted file
00:06:25
Now let's decrypt it just as
00:06:28
simply,
00:06:31
this time we use the
00:06:33
decrypt-file method first. Pass the path to the
00:06:36
encrypted file, then the path to the
00:06:39
files where the data will be written
00:06:42
and of course the password,
00:06:48
run the script,
00:06:50
enter the password
00:06:54
and get the data file of course this is
00:06:57
not all that this module can do, a
00:06:59
link to documentation and other examples
00:07:01
of work, I will leave in our Telegram channel the
00:07:04
next program that we will write
00:07:07
will encrypt PDF files, install the
00:07:09
pipdf module in our virtual
00:07:12
environment
00:07:14
and import from it two classes
00:07:18
PDF file Writer
00:07:20
and PDF Reader file
00:07:23
we create class objects in the pdf file Writer
00:07:27
and PDF file Reader
00:07:32
in which we pass the path to the PDF file with
00:07:35
which we will work in our
00:07:37
directory, I saved one, then we
00:07:39
need to get all the pages of the file,
00:07:41
use the for loop, go through the
00:07:44
pages
00:07:46
and Using the at page method we read and
00:07:49
add each page,
00:07:52
then we need to request a password for
00:07:55
encryption and let's just use the
00:07:59
getpass function specially designed for this from the module of the same name,
00:08:02
import,
00:08:07
create a password variable
00:08:11
and pass the getpass function using the
00:08:13
PROMT method a hint for the user
00:08:16
when entering after we encrypt the file using the
00:08:19
crypt methods in parameter of which
00:08:21
We pass the password, we have to write
00:08:24
the file, use the context manager UIZ,
00:08:27
open the file for writing in binary
00:08:29
mode [music]
00:08:31
and write using the Write method
00:08:34
called on the pdf-filewriter object,
00:08:38
in principle, everything is ready Let's
00:08:41
test, run the script,
00:08:45
enter the password Please note that the input is
00:08:48
not shown in the
00:08:50
Enter terminal and next to the original file
00:08:53
We now have a password-protected file,
00:08:55
let’s try to open it, we
00:08:58
intentionally enter the wrong password and
00:09:00
get an error, enter the correct one
00:09:04
and we have access to the file, our code
00:09:08
works, friends, thank you very much for
00:09:11
watching if you found the video useful and
00:09:13
interesting, you learned something- something new and
00:09:16
if you want to get more practice in
00:09:18
Python and other languages, be sure to Like,
00:09:20
press the bell and
00:09:23
Leave a comment under the video Because this is
00:09:25
how I understand that you are interested in
00:09:27
practically videos, subscribe to the
00:09:29
channel Be healthy Bye everyone

Description:

20-летие FirstVDS — скидки 30% на все VDS, онлайн-игра и розыгрыш Apple-призов: https://firstvds.ru/firstvds-20-years?from=1121599 ⚡️ Python Практика ⚡️ В данном видео пишем три программы для твоего портфолио на GitHub. Научимся извлекать аудио дорожку из видео файла, шифровать и дешифровать файлы, а также блокировать доступ к содержимому PDF файлу спомощью пароля. 🔥 Доступ в приват | Поддержать проект: https://boosty.to/pythontoday https://www.patreon.com/pythontoday https://yoomoney.ru/to/410019570956160 🔥 Стать спонсором канала: https://www.youtube.com/channel/UCrWWcscvUWaqdQJLQQGO6BA/join 🔥 Telegram канал к кучей ништяков и программами из видео: https://t.me/python2day *****Ссылки***** Дешевый/надежный сервер в Европе + СКИДКА 10%: https://vdsina.ru/?partner=858b36ud3p Хороший proxy сервис: https://proxy6.net/ Пентест с нуля | TryHackMe - Overpass | CTF | Информационная безопасность: https://www.youtube.com/watch?v=r4lvGDAm7jw Вычисляем по IP с помощью Python | Как определить местоположение по IP: https://www.youtube.com/watch?v=IZOq_sOtLz0 8000р за вечер на фрилансе | Обучение парсингу на Python https://www.youtube.com/watch?v=Et8lOqGpJ5o Диктофон с графическим интерфейсом: https://www.youtube.com/watch?v=9CKQFbjnI7o Неуловимый русский хакер | Банковские трояны, шифровальщики, хакерский клуб и миллионы долларов https://www.youtube.com/watch?v=mibloK6DSiI Программы на Python | Авто переводчик с разных языков в чате на Python | Python socket https://www.youtube.com/watch?v=f3q5OAehPJM OSINT Python | Как найти человека в интернете? | Поиск по социальным сетям https://www.youtube.com/watch?v=6bvdnYk3tl8 Как узнать пароль от Wi-Fi с помощью Python | Достаем пароли от Wi-Fi точек доступа в Windows: https://www.youtube.com/watch?v=gbFvM2omck8 Программы на Python | Распознавание лиц с камеры и в видео на Python | Opencv-python https://www.youtube.com/watch?v=gvQ_mT_rl5Y Скачиваем Instagram с помощью Python https://www.youtube.com/watch?v=nF1XwHnwtps Что такое фишинг и как не попасться? | Генератор QR код на Python: https://www.youtube.com/watch?v=d7cX3nPdLRg Парсинг криптобиржи | Торговый бот | API криптобиржи: https://www.youtube.com/watch?v=Z-JXVIbygm0 Python с нуля | if __name__ == '__main__' | Зачем? И почему нужно использовать https://www.youtube.com/watch?v=houlvw937fg Асинхронный парсинг на Python | Ускоряем код в 10 раз https://www.youtube.com/watch?v=87A1Rq0CGtE Парсинг на Python | Подмена IP-адреса | Запросы через прокси https://www.youtube.com/watch?v=_12U6Zfi5ik Парсинг динамического сайта на Python + Telegram бот на AIOGram | Requests, AIOGram, API, JSON https://www.youtube.com/watch?v=rEMNf1wmyJ8 Пишем Telegram бота на Python + Загружаем Telegram бота на сервер(хостинг): https://www.youtube.com/watch?v=x-VB3b4pKcU Плейлист по распознаванию лиц на Python: https://www.youtube.com/playlist?list=PLqGS6O1-DZLpVl2ks4S_095efPUgunsJo Плейлист по парсингу сайтов на Python: https://www.youtube.com/playlist?list=PLqGS6O1-DZLprgEaEeKn9BWKZBvzVi_la Плейлист по Instagram боту: https://www.youtube.com/playlist?list=PLqGS6O1-DZLqYx83MknKLaDxaIlES2nZr Плейлист по Linux для новичков: https://www.youtube.com/playlist?list=PLqGS6O1-DZLo8fjcztVUM0Eotb1fT2ZOh Telegram канал: https://t.me/python2day *****Соц.сети***** Telegram: https://t.me/python2day

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Три программы на Python для твоего портфолио на GitHub" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Три программы на Python для твоего портфолио на GitHub" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Три программы на Python для твоего портфолио на GitHub" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Три программы на Python для твоего портфолио на GitHub" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Три программы на Python для твоего портфолио на GitHub"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Три программы на Python для твоего портфолио на GitHub"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.