• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python nba_py._get_json函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中nba_py._get_json函数的典型用法代码示例。如果您正苦于以下问题:Python _get_json函数的具体用法?Python _get_json怎么用?Python _get_json使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了_get_json函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self,
              player_id,
              per_mode=PerMode.PerGame,
              league_id=League.NBA):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'PlayerID': player_id,
                                   'LeagueID': league_id,
                                   'PerMode': per_mode})
开发者ID:AlexNarayanan,项目名称:nba_py,代码行数:8,代码来源:player.py


示例2: __init__

 def __init__(self,
              game_id,
              start_period=0,
              end_period=0):
     self.json = _get_json(endpoint='playbyplay',
                           params={'GameID': game_id,
                                   'StartPeriod': start_period,
                                   'EndPeriod': end_period})
开发者ID:bungalow19,项目名称:nba_py,代码行数:8,代码来源:game.py


示例3: __init__

 def __init__(self,
              team_id,
              season_type=SeasonType.Default,
              per_mode=PerMode.Default):
     self.json = _get_json(endpoint=_endpoint,
                           params={'TeamID': team_id,
                                   'SeasonType': season_type,
                                   'PerMode': per_mode})
开发者ID:jeremyjbowers,项目名称:nba_py,代码行数:8,代码来源:team.py


示例4: __init__

 def __init__(self,
              team_id,
              season=CURRENT_SEASON,
              season_type=SeasonType.Default):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'TeamID': team_id,
                                   'Season': season,
                                   'SeasonType': season_type})
开发者ID:wele,项目名称:nba_py,代码行数:8,代码来源:team.py


示例5: __init__

 def __init__(self,
              game_id,
              start_period=constants.StartPeriod.Default,
              end_period=constants.EndPeriod.Default):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'GameID': game_id,
                                   'StartPeriod': start_period,
                                   'EndPeriod': end_period})
开发者ID:seemethere,项目名称:nba_py,代码行数:8,代码来源:game.py


示例6: __init__

 def __init__(
     self,
     player_id,
     vs_player_id,
     team_id=0,
     measure_type=MeasureType.Default,
     per_mode=PerMode.Default,
     plus_minus=PlusMinus.Default,
     pace_adjust=PaceAdjust.Default,
     rank=PaceAdjust.Default,
     league_id=League.Default,
     season=CURRENT_SEASON,
     season_type=SeasonType.Default,
     po_round=PlayoffRound.Default,
     outcome=Outcome.Default,
     location=Location.Default,
     month=Month.Default,
     season_segment=SeasonSegment.Default,
     date_from=DateFrom.Default,
     date_to=DateTo.Default,
     opponent_team_id=OpponentTeamID.Default,
     vs_conference=VsConference.Default,
     vs_division=VsDivision.Default,
     game_segment=GameSegment.Default,
     period=Period.Default,
     shot_clock_range=ShotClockRange.Default,
     last_n_games=LastNGames.Default,
 ):
     self.json = _get_json(
         endpoint=self._endpoint,
         params={
             "PlayerID": player_id,
             "VsPlayerID": vs_player_id,
             "TeamID": team_id,
             "MeasureType": measure_type,
             "PerMode": per_mode,
             "PlusMinus": plus_minus,
             "PaceAdjust": pace_adjust,
             "Rank": rank,
             "LeagueID": league_id,
             "Season": season,
             "SeasonType": season_type,
             "PORound": po_round,
             "Outcome": outcome,
             "Location": location,
             "Month": month,
             "SeasonSegment": season_segment,
             "DateFrom": date_from,
             "DateTo": date_to,
             "OpponentTeamID": opponent_team_id,
             "VsConference": vs_conference,
             "VsDivision": vs_division,
             "GameSegment": game_segment,
             "Period": period,
             "ShotClockRange": shot_clock_range,
             "LastNGames": last_n_games,
         },
     )
开发者ID:ZRiddle,项目名称:nba_forecasts,代码行数:58,代码来源:player.py


示例7: __init__

 def __init__(self,
              team_id,
              season=CURRENT_SEASON,
              league_id=NBA_ID,
              season_type='Regular Season'):
     self.json = _get_json(endpoint='teaminfocommon',
                           params={'TeamID': team_id,
                                   'Season': season,
                                   'LeagueID': league_id,
                                   'SeasonType': season_type})
开发者ID:bungalow19,项目名称:nba_py,代码行数:10,代码来源:team.py


示例8: __init__

 def __init__(self,
              team_id,
              season=constants.CURRENT_SEASON,
              league_id=constants.League.NBA,
              season_type=constants.SeasonType.Default):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'TeamID': team_id,
                                   'Season': season,
                                   'LeagueID': league_id,
                                   'SeasonType': season_type})
开发者ID:seemethere,项目名称:nba_py,代码行数:10,代码来源:team.py


示例9: __init__

    def __init__(
        self,
        player_id,
        team_id=TeamID.Default,
        game_id=GameID.Default,
        league_id=League.Default,
        season=CURRENT_SEASON,
        season_type=SeasonType.Default,
        outcome=Outcome.Default,
        location=Location.Default,
        month=Month.Default,
        season_segment=SeasonSegment.Default,
        date_from=DateFrom.Default,
        date_to=DateTo.Default,
        opponent_team_id=OpponentTeamID.Default,
        vs_conf=VsConference.Default,
        vs_div=VsDivision.Default,
        position=PlayerPosition.Default,
        game_segment=GameSegment.Default,
        period=Period.Default,
        last_n_games=LastNGames.Default,
        ahead_behind=AheadBehind.Default,
        context_measure=ContextMeasure.Default,
        clutch_time=ClutchTime.Default,
        rookie_year=RookieYear.Default,
    ):

        self.json = _get_json(
            endpoint=self._endpoint,
            params={
                "PlayerID": player_id,
                "TeamID": team_id,
                "GameID": game_id,
                "LeagueID": league_id,
                "Season": season,
                "SeasonType": season_type,
                "Outcome": outcome,
                "Location": location,
                "Month": month,
                "SeasonSegment": season_segment,
                "DateFrom": date_from,
                "DateTo": date_to,
                "OpponentTeamID": opponent_team_id,
                "VsConference": vs_conf,
                "VsDivision": vs_div,
                "Position": position,
                "GameSegment": game_segment,
                "Period": period,
                "LastNGames": last_n_games,
                "AheadBehind": ahead_behind,
                "ContextMeasure": context_measure,
                "ClutchTime": clutch_time,
                "RookieYear": rookie_year,
            },
        )
开发者ID:mcdallas,项目名称:nba_py,代码行数:55,代码来源:shotchart.py


示例10: __init__

 def __init__(self,
              league_id=League.Default,
              per_mode=PerMode.Default,
              stat_category=StatCategory.Default,
              season=CURRENT_SEASON,
              season_type=SeasonType.Default,
              scope=Scope.Default,):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'LeagueID': league_id,
                                   'PerMode': per_mode,
                                   'StatCategory': stat_category,
                                   'Season': season,
                                   'SeasonType': season_type,
                                   'Scope': scope})
开发者ID:AshBT,项目名称:nba_py,代码行数:14,代码来源:league.py


示例11: __init__

 def __init__(self,
              game_id,
              range_type=RangeType.Default,
              start_period=StartPeriod.Default,
              end_period=EndPeriod.Default,
              start_range=StartRange.Default,
              end_range=EndRange.Default):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'GameID': game_id,
                                   'RangeType': range_type,
                                   'StartPeriod': start_period,
                                   'EndPeriod': end_period,
                                   'StartRange': start_range,
                                   'EndRange': end_range})
开发者ID:ZRiddle,项目名称:nba_forecasts,代码行数:14,代码来源:game.py


示例12: __init__

 def __init__(
     self,
     game_id,
     range_type=RangeType.Default,
     start_period=StartPeriod.Default,
     end_period=EndPeriod.Default,
     start_range=StartRange.Default,
     end_range=EndRange.Default,
 ):
     self.json = _get_json(
         endpoint=self._endpoint,
         params={
             "GameID": game_id,
             "RangeType": range_type,
             "StartPeriod": start_period,
             "EndPeriod": end_period,
             "StartRange": start_range,
             "EndRange": end_range,
         },
     )
开发者ID:hanks42,项目名称:nba_py,代码行数:20,代码来源:game.py


示例13: __init__

 def __init__(self, league_id=League.Default, season=CURRENT_SEASON):
     self.json = _get_json(endpoint=self._endpoint,
                           params={'LeagueID': league_id,
                                   'SeasonYear': season})
开发者ID:mcdallas,项目名称:nba_py,代码行数:4,代码来源:draftcombine.py



注:本文中的nba_py._get_json函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python nbconvert.HTMLExporter类代码示例发布时间:2022-05-27
下一篇:
Python nba_py._api_scrape函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap