This commit is contained in:
jxxghp
2024-04-26 20:29:04 +08:00
parent 9daff87f2f
commit c303ab0765
5 changed files with 11 additions and 31 deletions

View File

@ -38,7 +38,6 @@ class DoubanApi(metaclass=Singleton):
"tv_search": "/search/movie",
"book_search": "/search/book",
"group_search": "/search/group",
"person_search": "/search/celebrity",
# 各类主题合集
# start: int = 0&count: int = 20
@ -275,14 +274,6 @@ 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["person_search"], 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')):
"""