Merge pull request #1968 from lightolly/dev/20240428

This commit is contained in:
jxxghp 2024-04-27 10:24:35 +08:00 committed by GitHub
commit 6927b5fbd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@ class DoubanApi(metaclass=Singleton):
# 聚合搜索
"search": "/search/weixin",
"search_agg": "/search",
"search_subject": "/search/subjects",
"imdbid": "/movie/imdb/%s",
# 电影探索
@ -274,6 +275,14 @@ class DoubanApi(metaclass=Singleton):
return self.__invoke(self._urls["group_search"], q=keyword,
start=start, count=count, _ts=ts)
def person_search(self, keyword: str, start: int = 0, count: int = 20,
ts=datetime.strftime(datetime.now(), '%Y%m%d')):
"""
人物搜索
"""
return self.__invoke(self._urls["search_subject"], type="person", q=keyword,
start=start, count=count, _ts=ts)
def movie_showing(self, start: int = 0, count: int = 20,
ts=datetime.strftime(datetime.now(), '%Y%m%d')):
"""