added more tests

This commit is contained in:
Luca Russo
2024-11-28 10:55:43 +01:00
parent 74d855c693
commit e36cfb73ff
2 changed files with 13 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ class FacebookProfileExtractor(FacebookExtractor):
BASE_PATTERN +
r"/(?!media/|photo/|photo.php|watch/)"
r"(?:profile\.php\?id=|people/[^/?#]+/)?"
r"([^/?&#]+)(?:/photos|/videos|/posts)?/?(?:$|\?|#)"
r"([^/?&#]+)(?:/photos|/photos_by|/videos|/posts)?/?(?:$|\?|#)"
)
example = "https://www.facebook.com/USERNAME"