Python 3 Reddit Video Post Downloader From URL Using Reddit API Library in Terminal
91 views
Jun 3, 2025
Buy the full source code of application here:
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
Uh in this video I will show you a
0:04
Python script which can download uh
0:06
Reddit videos very easily Uh so it's a
0:11
Reddit video downloader script that I uh
0:14
developed inside Python using an
0:16
open-source module which communicates
0:17
with the Reddit API So what you need to
0:20
do so if you open
0:23
Reddit simply go to the U uh post where
0:27
the video is present and simply copy the
0:30
address So just simp simply copy the URL
0:33
So we need to download this video So
0:36
simply paste this inside the
0:39
script As soon as you paste it so let me
0:43
run this Python script So as soon as I
0:45
run this Python script on the left hand
0:47
side you will see the video will get
0:50
downloaded a folder will get created You
0:53
will see the video has been successfully
0:55
downloaded and you will
0:58
see we got this video in a MP4 file you
1:02
will
1:03
seempp4 and uh you can
1:07
see in this easy way you can download
1:10
any sort of video and uh it's really
1:14
easy you just need to copy the address
1:17
of whichever video you want to
1:19
copy So again you go to the video right
1:23
here and simply copy this address So
1:27
after copying the address you simply
1:33
paste the address and once again if I
1:36
run
1:39
this you will see it will download this
1:42
video very easily You can see that now
1:45
it has downloaded the second
1:47
video You can see
1:49
that So we are using a open-source
1:53
package inside Python So let me show you
1:56
the package So go to this website py
1:59
pyorg and this is actually the package
2:03
yt-dp So it's an open-source package
2:07
There is no kind of restriction No need
2:09
to use any sort of API key Just install
2:12
this and in the background it is
2:14
communicating with the Reddit API You
2:16
can do this unlimited number of time And
2:18
let me now show you the
2:20
script So just create a simple app py
2:23
file After downloading this module we
2:27
simply first of all require this We
2:29
simply say import ytlp Then we also
2:32
import the operating system
2:36
module And then here we specify the
2:39
video URL So here you just need to paste
2:42
uh the
2:44
URL of the video that you want to
2:46
download Simply paste it After that here
2:50
you need to specify the output name
2:53
which will contain the title and the
2:55
extension of this So we will create this
2:57
uh downloaded videos folder Inside this
3:00
we will see the title of the video After
3:03
that we need to create the folder For
3:05
creating the folder we use this
3:07
operating system make
3:09
directories We create this directory
3:11
After
3:12
that we specify the options that need to
3:16
be passed So here you can actually
3:18
control the quality of the video So it
3:21
contains three options in this JSON
3:23
object We first of all the output
3:25
template Then we have the format of the
3:27
video So here you can specify which
3:29
quality of the video you want So I'm
3:31
specifying here best audio quality and
3:33
best video quality And then the third
3:36
option is the extension So we want the
3:38
MP4 video So after that we spec we just
3:42
download the video like this YDL It
3:46
contains this download function And then
3:48
we specify the video So this completes
3:51
the script Really easy script You can
3:54
see
3:56
only 10 lines of code And once you get
4:00
the script
4:01
here you can just execute this And uh
4:06
you can see it will download this So
4:08
with this module you can make awesome
4:10
applications such as Reddit video
4:12
downloader the user will submit the URL
4:15
and your application will download the
4:17
video So it's a very good module I
4:18
personally tried this This works really
4:20
good unlimited number of time and there
4:23
is no kind of restriction of putting an
4:26
API key It downloads your Reddit video
4:29
very easily So thank you very much for
4:31
watching this video and also check out
4:34
my website freemediatools.com
4:36
uh which contains thousands of tools
#Online Video
#Scripting Languages
#Video Sharing