Python 3 Facebook Reels & Video Post Downloader From URL Using Facebook API Library in Terminal
53 views
Jun 3, 2025
Buy the full source code of application here:
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I'll show you how to
0:04
download Facebook videos from URL uh so
0:08
I basically built this Python script uh
0:11
it can actually download the video from
0:14
Facebook it can be reals as well or a
0:16
normal video post which you there inside
0:19
Facebook so if you search let's suppose
0:21
I search for any sort of video right
0:23
here which is
0:25
JavaScript and uh you just need this URL
0:27
of the video so if you open
0:30
this so it can be a real as well you can
0:33
see you just need to copy the address
0:35
this is actually the real here
0:38
facebook.com/re this is the URL you
0:40
simply copy and now to download this
0:42
I've written the script here and I
0:45
simply paste the URL so once you paste
0:48
the URL and uh now we just need to go to
0:51
the terminal just run this script here
0:53
so just see as I run the script here you
0:56
will see on the left hand side the
0:58
downloading will start and it will
1:00
create a folder and the video has been
1:04
downloaded so you will see inside this
1:07
folder you get your video it's 44 second
1:11
long it also contain the audio as well
1:14
because I disabled the audio so you can
1:17
see audio will also be there so in this
1:19
easy way you can download Facebook res
1:22
very easily using this Python script uh
1:24
it is actually a free open-source module
1:27
which is communicating with the Facebook
1:29
API in the background GraphQL API and it
1:33
can even be a normal video so it totally
1:36
depend upon
1:38
you it can be a read it can be a video
1:42
so you can see again I copy the
1:46
URL and simply paste it so once again I
1:50
run
1:53
this so you will see the video will
1:56
again download and
2:09
uh so let me just close this once again
2:12
run this because it is it was open that
2:21
was so in this way guys you can download
2:24
any sort of res or videos from Facebook
2:26
so let me show you the module here so we
2:30
are actually using this module YTDLP so
2:33
this is if you go to the Python website
2:35
uh this is a third party module so
2:37
simply install this module the nice
2:40
thing about this you don't need any sort
2:42
of API key you can in basically use it
2:44
unlimited number of time so once you
2:46
install this uh the script is very easy
2:50
create a simple app py file and
2:54
uh now for doing this we first of all
2:57
import the module yt dlp then we also
3:01
need the operating system module and
3:03
then we simply create a video URL and
3:06
here you specify the URL of whichever
3:09
video you want to download so you simply
3:11
copy the address copy link address and
3:15
paste
3:16
it after that you specify the options
3:21
where you need to save it so we need to
3:23
save it in a folder downloaded / videos
3:27
so this folder will be created it will
3:29
capture the title plus the
3:31
extension and then we need to make this
3:34
folder for making this folder we use the
3:36
operating system module make directories
3:38
function and here we specify the
3:41
directory name so it will be
3:44
downloaded
3:47
videos after that creating the directory
3:50
here we specify the options so here you
3:53
can control the quality of the video as
3:55
well inside this JSON object we have
3:57
three options first of all the output
3:59
template then the format of the video
4:02
and then the MP4 extension so we want
4:04
the MP4 video so after that now we
4:08
actually call the function inside this
4:12
module and it contains this function YT
4:16
DL do download and here we specify the
4:20
video URL so that's all so this is
4:23
actually the Python script guys and if I
4:25
run this script now you will see it will
4:28
now download
4:31
the so you just need to make sure it is
4:34
saying
4:40
YTDL
4:41
sorry I think YT yeah DLP sorry just
4:46
make this
4:53
So I think I made a
5:00
mistake module has no attribute download
5:04
did you mean downloader sorry y sorry
5:08
this needs uh YDL sorry ydl yeah so
5:12
sorry I'm calling this YDL so this will
5:14
be YDL
5:15
so now run this you will
5:18
see it will now download this
5:25
video
5:27
so let's just delete this folder once
5:30
again run
5:32
this so some videos will not download
5:35
because they are private so it it only
5:37
works with the public accounts so just
5:40
make sure that the account that you're
5:41
downloading its public account
5:44
so private accounts reins are not
5:46
downloaded so you just need to make sure
5:49
that you are downloading the video from
5:51
a public account
5:54
so so again you paste the simple address
5:58
and then run this
6:02
script you will see the video will get
6:04
downloaded so only the public accounts
6:07
are supported guys private accounts are
6:09
not supported so but I personally use
6:12
this module it is very fantastic for
6:15
downloading videos from Facebook res
6:18
everything it's a great module you don't
6:21
require any API key but it is in the
6:23
background it is using the GraphQL
6:25
Facebook API for uh downloading the
6:28
videos so really you can make really
6:31
awesome applications related to Facebook
6:33
video downloading so thank you very much
6:35
for watching this video and also check
6:37
out my website freemediatools.com
6:40
uh which contains thousands of tools
#Online Video
#Photo & Video Sharing
#Video Sharing