# 运行此代码,没有异常说明自定义插件创建成功,已经注册在插件系统中
from anisearch.plugins import BasePlugin
from anisearch.anime.Anime import Anime
from anisearch.plugins._webget import get_html
class Custom(BasePlugin):
abstract = False
def __init__(self, parser, verify, timefmt) -> None:
super().__init__(parser, verify, timefmt)
def search(self, keyword, collected=True, proxies=None, system_proxy=False, **extra_options):
html = get_html("<url>", proxies=proxies, system_proxy=system_proxy, verify=self._verify)
# 这里实现您的搜索逻辑
# 返回一个 Anime 对象的列表
return [Anime("2023/06/01 12:00", "Custom Anime", "1.5GB", "magnet:?xt=urn:btih:..."), ...]