[bellazon] support '#comment-12345' post links (#8239)
This commit is contained in:
@@ -133,7 +133,7 @@ class BellazonExtractor(Extractor):
|
||||
class BellazonPostExtractor(BellazonExtractor):
|
||||
subcategory = "post"
|
||||
pattern = (rf"{BASE_PATTERN}(/topic/\d+-[\w-]+(?:/page/\d+)?)"
|
||||
rf"/?#findComment-(\d+)")
|
||||
rf"/?#(?:findC|c)omment-(\d+)")
|
||||
example = "https://www.bellazon.com/main/topic/123-SLUG/#findComment-12345"
|
||||
|
||||
def posts(self):
|
||||
|
||||
@@ -72,6 +72,11 @@ __tests__ = (
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.bellazon.com/main/topic/57872-millie-brady/#comment-4351049",
|
||||
"#class" : bellazon.BellazonPostExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.bellazon.com/main/topic/3556-bipasha-basu/#findComment-2134610",
|
||||
"#class" : bellazon.BellazonPostExtractor,
|
||||
|
||||
Reference in New Issue
Block a user