[cohost] add 'user' and 'post' extractors (#4483)

This commit is contained in:
Mike Fährmann
2024-09-10 22:26:22 +02:00
parent ff07aef776
commit df0d7d4a12
6 changed files with 222 additions and 0 deletions

26
test/results/cohost.py Normal file
View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from gallery_dl.extractor import cohost
__tests__ = (
{
"#url" : "https://cohost.org/infinitebrians",
"#category": ("", "cohost", "user"),
"#class" : cohost.CohostUserExtractor,
"#range" : "1-20",
"#count" : 20,
},
{
"#url" : "https://cohost.org/infinitebrians/post/4957017-thank-you-akira-tori",
"#category": ("", "cohost", "post"),
"#class" : cohost.CohostPostExtractor,
"#urls" : "https://staging.cohostcdn.org/attachment/58f9aa96-d2b2-4838-b81c-9aa8bac0bea0/march%204%202024.png",
},
)