跳转至

电影票房数据

MovieMapping

字段映射 当前实时电影票房

Movie

Movie(
    verbose: Annotated[Optional[bool], "", False] = False,
    logger: Annotated[Optional[Callable], "", False] = None,
    **kwargs: Annotated[Any, "", False]
)

查询 当前实时电影票房

Notes
from wisecon.movie import *

# 查询 当前实时电影票房
data = Movie().load()
data.to_frame(chinese_column=True)

Parameters:

Name Type Description Default
verbose Annotated[Optional[bool], '', False]

是否打印日志

False
logger Annotated[Optional[Callable], '', False]

自定义日志

None
**kwargs Annotated[Any, '', False]

其他参数

{}
Source code in wisecon\movie\movie.py
def __init__(
        self,
        verbose: Annotated[Optional[bool], "", False] = False,
        logger: Annotated[Optional[Callable], "", False] = None,
        **kwargs: Annotated[Any, "", False],
):
    """
    Notes:
        ```python
        from wisecon.movie import *

        # 查询 当前实时电影票房
        data = Movie().load()
        data.to_frame(chinese_column=True)
        ```

    Args:
        verbose: 是否打印日志
        logger: 自定义日志
        **kwargs: 其他参数
    """
    self.mapping = MovieMapping()
    self.verbose = verbose
    self.logger = logger
    self.kwargs = kwargs
    self.request_set(
        response_type="json",
        description="电影票房",
    )