@ -81,13 +81,14 @@ class FacebookIE(InfoExtractor):
' description ' : ' md5:34675bda53336b1d16400265c2bb9b3b ' ,
' description ' : ' md5:34675bda53336b1d16400265c2bb9b3b ' ,
' uploader ' : ' RADIO KICKS FM ' ,
' uploader ' : ' RADIO KICKS FM ' ,
' upload_date ' : ' 20230818 ' ,
' upload_date ' : ' 20230818 ' ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1692346159 ,
' timestamp ' : 1692346159 ,
' thumbnail ' : r ' re:^https?://.* ' ,
' uploader_id ' : ' 100063551323670 ' ,
' uploader_id ' : ' 100063551323670 ' ,
' duration ' : 3133.583 ,
' duration ' : 3133.583 ,
' view_count ' : int ,
' view_count ' : int ,
' concurrent_view_count ' : 0 ,
' concurrent_view_count ' : 0 ,
} ,
} ,
' expected_warnings ' : [ ' Cannot parse data ' ] ,
} , {
} , {
' url ' : ' https://www.facebook.com/video.php?v=637842556329505&fref=nf ' ,
' url ' : ' https://www.facebook.com/video.php?v=637842556329505&fref=nf ' ,
' md5 ' : ' 6a40d33c0eccbb1af76cf0485a052659 ' ,
' md5 ' : ' 6a40d33c0eccbb1af76cf0485a052659 ' ,
@ -106,17 +107,18 @@ class FacebookIE(InfoExtractor):
' info_dict ' : {
' info_dict ' : {
' id ' : ' 274175099429670 ' ,
' id ' : ' 274175099429670 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Asif' ,
' title ' : ' 119 reactions · 1.4K shares | Asif Nawab Butt on Reels ' ,
' description ' : ' ' ,
' description ' : ' ' ,
' uploader ' : ' Asif Nawab Butt ' ,
' uploader ' : ' Asif Nawab Butt ' ,
' upload_date ' : ' 20140506 ' ,
' upload_date ' : ' 20140506 ' ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1399398998 ,
' timestamp ' : 1399398998 ,
' thumbnail ' : r ' re:^https?://.* ' ,
' uploader_id ' : ' pfbid028xue38TBXRyNbiqBSV2LFs3QK3yopvKjupbqFoL6U9SKbx4p2SMdJjQSBvnjsHGWl ' ,
' uploader_id ' : ' pfbid05AzrFTXgY37tqwaSgbFTTEpCLBjjEJHkigogwGiRPtKEpAsJYJpzE94H1RxYXWEtl ' ,
' duration ' : 131.03 ,
' duration ' : 131.03 ,
' concurrent_view_count ' : int ,
' concurrent_view_count ' : int ,
' view_count ' : int ,
' view_count ' : int ,
} ,
} ,
' expected_warnings ' : [ ' Cannot parse data ' ] ,
} , {
} , {
' note ' : ' Video with DASH manifest ' ,
' note ' : ' Video with DASH manifest ' ,
' url ' : ' https://www.facebook.com/video.php?v=957955867617029 ' ,
' url ' : ' https://www.facebook.com/video.php?v=957955867617029 ' ,
@ -158,7 +160,7 @@ class FacebookIE(InfoExtractor):
' id ' : ' 10153664894881749 ' ,
' id ' : ' 10153664894881749 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Average time to confirm recent Supreme Court nominees: 67 days Longest it \' s t... ' ,
' title ' : ' Average time to confirm recent Supreme Court nominees: 67 days Longest it \' s t... ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1456259628 ,
' timestamp ' : 1456259628 ,
' upload_date ' : ' 20160223 ' ,
' upload_date ' : ' 20160223 ' ,
' uploader ' : ' Barack Obama ' ,
' uploader ' : ' Barack Obama ' ,
@ -168,7 +170,7 @@ class FacebookIE(InfoExtractor):
# have 1080P, but only up to 720p in swf params
# have 1080P, but only up to 720p in swf params
# data.video.story.attachments[].media
# data.video.story.attachments[].media
' url ' : ' https://www.facebook.com/cnn/videos/10155529876156509/ ' ,
' url ' : ' https://www.facebook.com/cnn/videos/10155529876156509/ ' ,
' md5 ' : ' 1659aa21fb3dd1585874f668e81a72c8 ' ,
' md5 ' : ' 70b82ebf5f0e9b91b2a49d3db3563611 ' ,
' info_dict ' : {
' info_dict ' : {
' id ' : ' 10155529876156509 ' ,
' id ' : ' 10155529876156509 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
@ -177,7 +179,7 @@ class FacebookIE(InfoExtractor):
' timestamp ' : 1477818095 ,
' timestamp ' : 1477818095 ,
' upload_date ' : ' 20161030 ' ,
' upload_date ' : ' 20161030 ' ,
' uploader ' : ' CNN ' ,
' uploader ' : ' CNN ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' view_count ' : int ,
' view_count ' : int ,
' uploader_id ' : ' 100059479812265 ' ,
' uploader_id ' : ' 100059479812265 ' ,
' concurrent_view_count ' : int ,
' concurrent_view_count ' : int ,
@ -198,13 +200,11 @@ class FacebookIE(InfoExtractor):
' uploader ' : ' Yaroslav Korpan ' ,
' uploader ' : ' Yaroslav Korpan ' ,
' uploader_id ' : ' pfbid06AScABAWcW91qpiuGrLt99Ef9tvwHoXP6t8KeFYEqkSfreMtfa9nTveh8b2ZEVSWl ' ,
' uploader_id ' : ' pfbid06AScABAWcW91qpiuGrLt99Ef9tvwHoXP6t8KeFYEqkSfreMtfa9nTveh8b2ZEVSWl ' ,
' concurrent_view_count ' : int ,
' concurrent_view_count ' : int ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' view_count ' : int ,
' view_count ' : int ,
' duration ' : 11736.446 ,
' duration ' : 11736.446 ,
} ,
} ,
' params ' : {
' skip ' : ' Invalid URL ' ,
' skip_download ' : True ,
} ,
} , {
} , {
# FIXME: Cannot parse data error
# FIXME: Cannot parse data error
' url ' : ' https://www.facebook.com/LaGuiaDelVaron/posts/1072691702860471 ' ,
' url ' : ' https://www.facebook.com/LaGuiaDelVaron/posts/1072691702860471 ' ,
@ -215,7 +215,7 @@ class FacebookIE(InfoExtractor):
' timestamp ' : 1477305000 ,
' timestamp ' : 1477305000 ,
' upload_date ' : ' 20161024 ' ,
' upload_date ' : ' 20161024 ' ,
' uploader ' : ' La Guía Del Varón ' ,
' uploader ' : ' La Guía Del Varón ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
} ,
} ,
' skip ' : ' Requires logging in ' ,
' skip ' : ' Requires logging in ' ,
} , {
} , {
@ -244,9 +244,10 @@ class FacebookIE(InfoExtractor):
' upload_date ' : ' 20171124 ' ,
' upload_date ' : ' 20171124 ' ,
' uploader ' : ' Vickie Gentry ' ,
' uploader ' : ' Vickie Gentry ' ,
' uploader_id ' : ' pfbid0FkkycT95ySNNyfCw4Cho6u5G7WbbZEcxT496Hq8rtx1K3LcTCATpR3wnyYhmyGC5l ' ,
' uploader_id ' : ' pfbid0FkkycT95ySNNyfCw4Cho6u5G7WbbZEcxT496Hq8rtx1K3LcTCATpR3wnyYhmyGC5l ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' duration ' : 148.224 ,
' duration ' : 148.224 ,
} ,
} ,
' skip ' : ' Invalid URL ' ,
} , {
} , {
# data.node.comet_sections.content.story.attachments[].styles.attachment.media
# data.node.comet_sections.content.story.attachments[].styles.attachment.media
' url ' : ' https://www.facebook.com/attn/posts/pfbid0j1Czf2gGDVqeQ8KiMLFm3pWN8GxsQmeRrVhimWDzMuKQoR8r4b1knNsejELmUgyhl ' ,
' url ' : ' https://www.facebook.com/attn/posts/pfbid0j1Czf2gGDVqeQ8KiMLFm3pWN8GxsQmeRrVhimWDzMuKQoR8r4b1knNsejELmUgyhl ' ,
@ -260,7 +261,7 @@ class FacebookIE(InfoExtractor):
' duration ' : 132.675 ,
' duration ' : 132.675 ,
' uploader_id ' : ' 100064451419378 ' ,
' uploader_id ' : ' 100064451419378 ' ,
' view_count ' : int ,
' view_count ' : int ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1701975646 ,
' timestamp ' : 1701975646 ,
} ,
} ,
} , {
} , {
@ -271,9 +272,9 @@ class FacebookIE(InfoExtractor):
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Lela Evans ' ,
' title ' : ' Lela Evans ' ,
' description ' : ' Today Makkovik \' s own Pilot Mandy Smith made her inaugural landing on the airstrip in her hometown. What a proud moment as we all cheered and... ' ,
' description ' : ' Today Makkovik \' s own Pilot Mandy Smith made her inaugural landing on the airstrip in her hometown. What a proud moment as we all cheered and... ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' uploader ' : ' Lela Evans ' ,
' uploader ' : ' Lela Evans ' ,
' uploader_id ' : ' pfbid0 swT2y7t6TAsZVBvcyeYPdhTMefGaS26mzUwML3vd1ma6ndGZKxsyS4Ssu3jitZLX l' ,
' uploader_id ' : ' pfbid0 2wjMpknobSMnyynK3TNKN4Ww1StcpAKXgowqTyge3bz7LwHZMQ68uiXzzbu7xeryB l' ,
' upload_date ' : ' 20231228 ' ,
' upload_date ' : ' 20231228 ' ,
' timestamp ' : 1703804085 ,
' timestamp ' : 1703804085 ,
' duration ' : 394.347 ,
' duration ' : 394.347 ,
@ -326,28 +327,27 @@ class FacebookIE(InfoExtractor):
' uploader_id ' : ' 100066514874195 ' ,
' uploader_id ' : ' 100066514874195 ' ,
' duration ' : 4524.001 ,
' duration ' : 4524.001 ,
' view_count ' : int ,
' view_count ' : int ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' concurrent_view_count ' : int ,
' concurrent_view_count ' : int ,
} ,
} ,
' params ' : {
' params ' : { ' skip_download ' : True } ,
' skip_download ' : True ,
} ,
} , {
} , {
# data.node.comet_sections.content.story.attachments[].style_type_renderer.attachment.all_subattachments.nodes[].media
# data.node.comet_sections.content.story.attachments[].style_type_renderer.attachment.all_subattachments.nodes[].media
' url ' : ' https://www.facebook.com/100033620354545/videos/106560053808006/ ' ,
' url ' : ' https://www.facebook.com/100033620354545/videos/106560053808006/ ' ,
' info_dict ' : {
' info_dict ' : {
' id ' : ' 106560053808006 ' ,
' id ' : ' 106560053808006 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Josef ' ,
' title ' : ' Josef Novak on Reels ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' concurrent_view_count ' : int ,
' concurrent_view_count ' : int ,
' uploader_id ' : ' pfbid0 2gpfwRM2XvdEJfsERupwQiNmBiDArc38RMRYZnap372q6Vs7MtFTVy72mmFWpJBTK l' ,
' uploader_id ' : ' pfbid0 cjYJYXpePWqhZ9DgpB6gKXrN2q3obwducdKm4wT7K5nkhbfKg5cneocYbsdaji7f l' ,
' timestamp ' : 1549275572 ,
' timestamp ' : 1549275572 ,
' duration ' : 3.283 ,
' duration ' : 3.283 ,
' uploader ' : ' Josef Novak ' ,
' uploader ' : ' Josef Novak ' ,
' description ' : ' ' ,
' description ' : ' ' ,
' upload_date ' : ' 20190204 ' ,
' upload_date ' : ' 20190204 ' ,
} ,
} ,
' expected_warnings ' : [ ' Cannot parse data ' ] ,
} , {
} , {
# data.video.story.attachments[].media
# data.video.story.attachments[].media
' url ' : ' https://www.facebook.com/watch/?v=647537299265662 ' ,
' url ' : ' https://www.facebook.com/watch/?v=647537299265662 ' ,
@ -406,7 +406,7 @@ class FacebookIE(InfoExtractor):
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' ANALISI IN CAMPO OSCURO " Coaguli nel sangue dei vaccinati " ' ,
' title ' : ' ANALISI IN CAMPO OSCURO " Coaguli nel sangue dei vaccinati " ' ,
' description ' : ' Other event by Comitato Liberi Pensatori on Tuesday, October 18 2022 ' ,
' description ' : ' Other event by Comitato Liberi Pensatori on Tuesday, October 18 2022 ' ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' uploader ' : ' Comitato Liberi Pensatori ' ,
' uploader ' : ' Comitato Liberi Pensatori ' ,
' uploader_id ' : ' 100065709540881 ' ,
' uploader_id ' : ' 100065709540881 ' ,
} ,
} ,
@ -414,6 +414,56 @@ class FacebookIE(InfoExtractor):
' url ' : ' https://www.facebook.com/groups/1513990329015294/posts/d41d8cd9/2013209885760000/?app=fbl ' ,
' url ' : ' https://www.facebook.com/groups/1513990329015294/posts/d41d8cd9/2013209885760000/?app=fbl ' ,
' only_matching ' : True ,
' only_matching ' : True ,
} ]
} ]
_WEBPAGE_TESTS = [ {
# <iframe> embed
' url ' : ' http://www.unique-almeria.com/mini-hollywood.html ' ,
' md5 ' : ' cba5d8c5021e9340dcefe925255e2c3e ' ,
' info_dict ' : {
' id ' : ' 1529066599879 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Facebook video #1529066599879 ' ,
} ,
' expected_warnings ' : [ ' unable to extract uploader ' ] ,
} , {
# FIXME: Embed detection
# <iframe> embed, plugin video
' url ' : ' https://www.newsmemory.com/eedition/e-publishing-solutions/2-in-one-app/ ' ,
' md5 ' : ' ae97d4a44f8cc9a8b1a4c03b9ed793af ' ,
' info_dict ' : {
' id ' : ' 10155710648695814 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' Download the all new and improved Trinidad Express App ' ,
' concurrent_view_count ' : int ,
' description ' : ' md5:4806195c99908e4189b45b1c23bd4f89 ' ,
' duration ' : 69.408 ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1533919195 ,
' upload_date ' : ' 20180810 ' ,
' uploader ' : ' Trinidad Express Newspapers ' ,
' uploader_id ' : ' 100064446413648 ' ,
' view_count ' : int ,
} ,
' expected_warnings ' : [ ' Cannot parse data ' ] ,
} , {
# API embed
' url ' : ' https://www.curs.md/ro ' ,
' md5 ' : ' 090bae53b9bff2be993c896edc2ea205 ' ,
' info_dict ' : {
' id ' : ' 334484292523563 ' ,
' ext ' : ' mp4 ' ,
' title ' : ' md5:9abffe1c86cdd967ffa224e1ccc13b90 ' ,
' concurrent_view_count ' : int ,
' description ' : ' md5:0ba98567a61c640f9fabf1882235b33d ' ,
' duration ' : 8789.891 ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1700603114 ,
' upload_date ' : ' 20231121 ' ,
' uploader ' : ' Istoria Moldovei ' ,
' uploader_id ' : ' 100063529778592 ' ,
' view_count ' : int ,
} ,
' params ' : { ' extractor_args ' : { ' generic ' : { ' impersonate ' : [ ' chrome ' ] } } } ,
} ]
_SUPPORTED_PAGLETS_REGEX = r ' (?:pagelet_group_mall|permalink_video_pagelet|hyperfeed_story_id_[0-9a-f]+) '
_SUPPORTED_PAGLETS_REGEX = r ' (?:pagelet_group_mall|permalink_video_pagelet|hyperfeed_story_id_[0-9a-f]+) '
_api_config = {
_api_config = {
' graphURI ' : ' /api/graphql/ ' ,
' graphURI ' : ' /api/graphql/ ' ,
@ -898,20 +948,24 @@ class FacebookIE(InfoExtractor):
class FacebookPluginsVideoIE ( InfoExtractor ) :
class FacebookPluginsVideoIE ( InfoExtractor ) :
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/plugins/video \ .php \ ?.*? \ bhref=(?P<id>https.+) '
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/plugins/video \ .php \ ?.*? \ bhref=(?P<id>https.+) '
_TESTS = [ {
_TESTS = [ {
' url ' : ' https://www.facebook.com/plugins/video.php?href=https % 3A %2F %2F www.facebook.com %2F gov.sg %2F videos %2F 10154383743583686 %2F &show_text=0&width=560 ' ,
' url ' : ' https://www.facebook.com/plugins/video.php?href=https % 3A %2F %2F www.facebook.com %2F gov.sg %2F videos %2F 10154383743583686 %2F &show_text=0&width=560 ' ,
' md5 ' : ' 5954e92cdfe51fe5782ae9bda7058a07 ' ,
' md5 ' : ' af83aeae1d595f377c6e47a450828155 ' ,
' info_dict ' : {
' info_dict ' : {
' id ' : ' 10154383743583686 ' ,
' id ' : ' 10154383743583686 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
# TODO: Fix title, uploader
' title ' : ' What to do during the haze? ' ,
' title ' : ' What to do during the haze? ' ,
' uploader ' : ' Gov.sg ' ,
' concurrent_view_count ' : int ,
' upload_date ' : ' 20160826 ' ,
' description ' : ' md5:81839c0979803a014b20798df255ed0b ' ,
' duration ' : 65.087 ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1472184808 ,
' timestamp ' : 1472184808 ,
' upload_date ' : ' 20160826 ' ,
' uploader ' : ' gov.sg ' ,
' uploader_id ' : ' 100064718678925 ' ,
' view_count ' : int ,
} ,
} ,
' add_ie ' : [ FacebookIE . ie_key ( ) ] ,
' expected_warnings' : [ ' Cannot parse data ' ] ,
} , {
} , {
' url ' : ' https://www.facebook.com/plugins/video.php?href=https % 3A %2F %2F www.facebook.com %2F video.php %3F v % 3D10204634152394104 ' ,
' url ' : ' https://www.facebook.com/plugins/video.php?href=https % 3A %2F %2F www.facebook.com %2F video.php %3F v % 3D10204634152394104 ' ,
' only_matching ' : True ,
' only_matching ' : True ,
@ -945,7 +999,7 @@ class FacebookRedirectURLIE(InfoExtractor):
' tags ' : ' count:11 ' ,
' tags ' : ' count:11 ' ,
' duration ' : 3332 ,
' duration ' : 3332 ,
' live_status ' : ' not_live ' ,
' live_status ' : ' not_live ' ,
' thumbnail ' : ' https://i.ytimg.com/vi/pO8h3EaFRdo/maxresdefault.jpg ' ,
' thumbnail ' : r' re:https?://i \ .ytimg \ .com/vi/.+ ' ,
' channel_url ' : ' https://www.youtube.com/channel/UCGBpxWJr9FNOcFYA5GkKrMg ' ,
' channel_url ' : ' https://www.youtube.com/channel/UCGBpxWJr9FNOcFYA5GkKrMg ' ,
' availability ' : ' public ' ,
' availability ' : ' public ' ,
' uploader_url ' : ' http://www.youtube.com/user/brtvofficial ' ,
' uploader_url ' : ' http://www.youtube.com/user/brtvofficial ' ,
@ -954,8 +1008,7 @@ class FacebookRedirectURLIE(InfoExtractor):
' view_count ' : int ,
' view_count ' : int ,
' like_count ' : int ,
' like_count ' : int ,
} ,
} ,
' add_ie ' : [ ' Youtube ' ] ,
' skip ' : ' Youtube video is now private ' ,
' params ' : { ' skip_download ' : ' Youtube ' } ,
} ]
} ]
def _real_extract ( self , url ) :
def _real_extract ( self , url ) :
@ -968,22 +1021,20 @@ class FacebookRedirectURLIE(InfoExtractor):
class FacebookReelIE ( InfoExtractor ) :
class FacebookReelIE ( InfoExtractor ) :
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/reel/(?P<id> \ d+) '
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/reel/(?P<id> \ d+) '
IE_NAME = ' facebook:reel '
IE_NAME = ' facebook:reel '
_TESTS = [ {
_TESTS = [ {
' url ' : ' https://www.facebook.com/reel/1195289147628387 ' ,
' url ' : ' https://www.facebook.com/reel/1195289147628387 ' ,
' md5 ' : ' a 53256d10fc2105441fe0c4212ed8cea ' ,
' md5 ' : ' a eb0153ecb2eaacdf2dc2bf88f593fef ' ,
' info_dict ' : {
' info_dict ' : {
' id ' : ' 1195289147628387 ' ,
' id ' : ' 1195289147628387 ' ,
' ext ' : ' mp4 ' ,
' ext ' : ' mp4 ' ,
' title ' : r' re:9 \ .6K views · 355 reactions .+ Let the “Slapathon” commence!! .+ LL COOL J · Mama Said Knock You Out$ ' ,
' title ' : ' 9.7K views · 352 reactions | When your trying to help your partner out with an arrest and #FAAFO games begin. Let the “Slapathon” commence!! 👊👋 | Beast Camp Training ' ,
' description ' : r' re:When your trying to help your partner .+ LL COOL J · Mama Said Knock You Out$ ' ,
' description ' : ' md5:5a767dc7e78718667b150a7facc4a34f ' ,
' uploader ' : ' Beast Camp Training' ,
' uploader ' : ' 9.7K views · 352 reactions | When your trying to help your partner out with an arrest and #FAAFO games begin. Let the “Slapathon” commence!! 👊👋 | Beast Camp Training' ,
' uploader_id ' : ' 100040874179269 ' ,
' uploader_id ' : ' 100040874179269 ' ,
' duration ' : 9.579 ,
' duration ' : 9.579 ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1637502609 ,
' timestamp ' : 1637502609 ,
' upload_date ' : ' 20211121 ' ,
' upload_date ' : ' 20211121 ' ,
' thumbnail ' : r ' re:^https?://.* ' ,
' like_count ' : int ,
' comment_count ' : int ,
' comment_count ' : int ,
' repost_count ' : int ,
' repost_count ' : int ,
} ,
} ,
@ -998,7 +1049,6 @@ class FacebookReelIE(InfoExtractor):
class FacebookAdsIE ( InfoExtractor ) :
class FacebookAdsIE ( InfoExtractor ) :
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/ads/library/? \ ?(?:[^#]+&)?id=(?P<id> \ d+) '
_VALID_URL = r ' https?://(?:[ \ w-]+ \ .)?facebook \ .com/ads/library/? \ ?(?:[^#]+&)?id=(?P<id> \ d+) '
IE_NAME = ' facebook:ads '
IE_NAME = ' facebook:ads '
_TESTS = [ {
_TESTS = [ {
' url ' : ' https://www.facebook.com/ads/library/?id=899206155126718 ' ,
' url ' : ' https://www.facebook.com/ads/library/?id=899206155126718 ' ,
' info_dict ' : {
' info_dict ' : {
@ -1008,12 +1058,13 @@ class FacebookAdsIE(InfoExtractor):
' description ' : ' md5:0822724069e3aca97cbed5dabbab282e ' ,
' description ' : ' md5:0822724069e3aca97cbed5dabbab282e ' ,
' uploader ' : ' Kandao ' ,
' uploader ' : ' Kandao ' ,
' uploader_id ' : ' 774114102743284 ' ,
' uploader_id ' : ' 774114102743284 ' ,
' uploader_url ' : r' re:^https?://.* ' ,
' uploader_url ' : ' https://facebook.com/KandaoVR ' ,
' timestamp ' : 1702548330 ,
' timestamp ' : 1702548330 ,
' thumbnail ' : r ' re: ^https?://.* ' ,
' thumbnail ' : r ' re: https?://scontent\ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' upload_date ' : ' 20231214 ' ,
' upload_date ' : ' 20231214 ' ,
' like_count ' : int ,
' like_count ' : int ,
} ,
} ,
' skip ' : ' Invalid URL ' ,
} , {
} , {
# key 'watermarked_video_sd_url' missing
# key 'watermarked_video_sd_url' missing
' url ' : ' https://www.facebook.com/ads/library/?id=501152689226254 ' ,
' url ' : ' https://www.facebook.com/ads/library/?id=501152689226254 ' ,
@ -1024,9 +1075,9 @@ class FacebookAdsIE(InfoExtractor):
' description ' : ' md5:02a446ace7ff8c3c37a2892922492490 ' ,
' description ' : ' md5:02a446ace7ff8c3c37a2892922492490 ' ,
' uploader ' : ' mat.nawrocki ' ,
' uploader ' : ' mat.nawrocki ' ,
' uploader_id ' : ' 148586968341456 ' ,
' uploader_id ' : ' 148586968341456 ' ,
' uploader_url ' : r ' re:^https?://.* ' ,
' uploader_url ' : ' https://www.instagram.com/_u/mat.nawrocki ' ,
' thumbnail ' : r ' re:https?://scontent \ .fitm \ d-1 \ .fna \ .fbcdn \ .net/.+ ' ,
' timestamp ' : 1723452305 ,
' timestamp ' : 1723452305 ,
' thumbnail ' : r ' re:^https?://.* ' ,
' upload_date ' : ' 20240812 ' ,
' upload_date ' : ' 20240812 ' ,
' like_count ' : int ,
' like_count ' : int ,
} ,
} ,
@ -1037,12 +1088,13 @@ class FacebookAdsIE(InfoExtractor):
' title ' : ' Jusqu \u2019 \u00e0 -25 % s ur une s \u00e9 lection de vins p \u00e9 tillants italiens ' ,
' title ' : ' Jusqu \u2019 \u00e0 -25 % s ur une s \u00e9 lection de vins p \u00e9 tillants italiens ' ,
' uploader ' : ' Eataly Paris Marais ' ,
' uploader ' : ' Eataly Paris Marais ' ,
' uploader_id ' : ' 2086668958314152 ' ,
' uploader_id ' : ' 2086668958314152 ' ,
' uploader_url ' : r' re:^https?://.* ' ,
' uploader_url ' : ' https://facebook.com/EatalyParisMarais ' ,
' timestamp ' : 1703571529 ,
' timestamp ' : 1703571529 ,
' upload_date ' : ' 20231226 ' ,
' upload_date ' : ' 20231226 ' ,
' like_count ' : int ,
' like_count ' : int ,
} ,
} ,
' playlist_count ' : 3 ,
' playlist_count ' : 3 ,
' skip ' : ' Invalid URL ' ,
} , {
} , {
' url ' : ' https://es-la.facebook.com/ads/library/?id=901230958115569 ' ,
' url ' : ' https://es-la.facebook.com/ads/library/?id=901230958115569 ' ,
' only_matching ' : True ,
' only_matching ' : True ,