{"id":18789146,"url":"https://github.com/hmasdev/pyjpboatrace","last_synced_at":"2025-08-26T19:07:15.221Z","repository":{"id":43009173,"uuid":"318756670","full_name":"hmasdev/pyjpboatrace","owner":"hmasdev","description":"pyjpboatrace :speedboat: provides you with useful tools for data analysis and auto-betting for boatrace.","archived":false,"fork":false,"pushed_at":"2025-07-10T13:57:18.000Z","size":388,"stargazers_count":13,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-10T19:44:02.767Z","etag":null,"topics":["betting","boatrace","kyotei","python","scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmasdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-05T10:11:44.000Z","updated_at":"2025-07-10T13:57:22.000Z","dependencies_parsed_at":"2024-04-20T12:40:00.738Z","dependency_job_id":"cffb8b67-876b-453b-9cb6-2f97bce91a05","html_url":"https://github.com/hmasdev/pyjpboatrace","commit_stats":{"total_commits":121,"total_committers":4,"mean_commits":30.25,"dds":0.2148760330578512,"last_synced_commit":"309188b080c9bebaf9203fcbf7ff726234d37973"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/hmasdev/pyjpboatrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmasdev%2Fpyjpboatrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmasdev%2Fpyjpboatrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmasdev%2Fpyjpboatrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmasdev%2Fpyjpboatrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmasdev","download_url":"https://codeload.github.com/hmasdev/pyjpboatrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmasdev%2Fpyjpboatrace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269329599,"owners_count":24399058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["betting","boatrace","kyotei","python","scraping"],"created_at":"2024-11-07T21:06:48.474Z","updated_at":"2025-08-07T21:25:12.443Z","avatar_url":"https://github.com/hmasdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyJPBoatRace: Python-based Japanese boatrace tools :speedboat:\n\n![GitHub top language](https://img.shields.io/github/languages/top/hmasdev/pyjpboatrace)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/hmasdev/pyjpboatrace?sort=semver)\n![GitHub](https://img.shields.io/github/license/hmasdev/pyjpboatrace)\n![GitHub last commit](https://img.shields.io/github/last-commit/hmasdev/pyjpboatrace)\n[![PyPI version](https://badge.fury.io/py/pyjpboatrace.svg)](https://pypi.org/project/pyjpboatrace/)\n![Scheduled Test](https://github.com/hmasdev/pyjpboatrace/actions/workflows/tests_on_schedule.yaml/badge.svg)\n\nJapanese boat race is extremely exciting sports.\nIt is also fun to predict the results of races.\nPrediction like machine learning method requires data.\nThus, this package provides you with useful tools for data analysis and auto-betting for boatrace.\n\n## Installation\n\n### Requirements\n\nIf you want to deposit, withdraw and betting with pyjpboatrace,\none of the following browers is required at least:\n\n- Chrome\n- Firefox\n- Edge\n\n### Dependencies\n\n- python \u003e= 3.9\n- requests\u003e=2.28.1\n- beautifulsoup4\u003e=4.11.1\n- selenium\u003e=4.6\n\n### User installation\n\n```bash\npip install -U pyjpboatrace\n```\n\n## How to use\n\n1. (optional) create an instance of UserInformation;\n2. (optional) create a selenium driver;\n3. create an instance of PyJPBoatrace;\n4. execute scraping and operating.\n\nNOTE: you must create a UserInformation instance and a selenium driver to order to deposit, withdraw or bet.\n\n### UserInformation\n\n- `pyjpboatrace.user_information.UserInformation(userid:str, pin:str, auth_pass:str, vote_pass:str, json_file:str)`\n\nNOTE: If you use a json file to create an instance of UserInformation, the json file should contain the following keys: userid, pin, auth_pass and vote_pass.\n\n### Selenium Driver\n\nYou can use the following functions to create selenium drivers:\n\n- pyjpboatrace.drivers.create_chrome_driver()\n- pyjpboatrace.drivers.create_firefox_driver()\n- pyjpboatrace.drivers.create_edge_driver()\n- pyjpboatrace.drivers.create_httpget_driver()\n\nNOTE 1: you can use your own selenium driver.\n\nNOTE 2: If you use create_httpget_driver, you cannot execute the following operations, deposit, withdraw or bet.\n\n### Scraping and Operating\n\nPyJPBoatrace provides 2 main functions: scraping and operating.\n\nThe former is scraping race information, odds and so on;\nthe latter is betting, depositing and withdrawing.\n\n#### Scraping\n\n- Get a list of stadiums which hold races on the given day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_stadiums(d: datetime.date) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().Stadiums.get(d: datetime.date) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_stadiums(date(2021, 8, 12)))\n    {'date': '2021-08-12',\n     'びわこ': {'day': '３日目',\n             'grade': ['ippan'],\n             'period': ['2021-08-10', '2021-08-15'],\n             'status': '-',\n             'timeframe': '',\n             'title': '滋賀県知事杯争奪第２６回びわこカップ'},\n     '三国': {'day': '２日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-11', '2021-08-16'],\n            'status': '-',\n            'timeframe': 'morning',\n            'title': '第４９回しぶき賞'},\n     '下関': {'day': '最終日',\n            'grade': ['ippan'],\n            'period': ['2021-08-06', '2021-08-12'],\n            'status': '-',\n            'timeframe': 'nighter',\n            'title': 'Ｈａｙａｓｈｉｋａｎｅ杯'},\n     '唐津': {'day': '最終日',\n            'grade': ['ippan'],\n            'period': ['2021-08-07', '2021-08-12'],\n            'status': '-',\n            'timeframe': 'morning',\n            'title': '唐津大賞がばい王者決定戦'},\n     '多摩川': {'day': '最終日',\n             'grade': ['ippan'],\n             'period': ['2021-08-08', '2021-08-12'],\n             'status': '-',\n             'timeframe': 'summer',\n             'title': '第５９回スポーツニッポン賞'},\n     '宮島': {'day': '最終日',\n            'grade': ['ippan'],\n            'period': ['2021-08-07', '2021-08-12'],\n            'status': '-',\n            'timeframe': '',\n            'title': '第５１回スポーツニッポン杯'},\n     '尼崎': {'day': '４日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-09', '2021-08-14'],\n            'status': '-',\n            'timeframe': '',\n            'title': '日本財団会長杯争奪第４９回オール兵庫王座決定戦'},\n     '常滑': {'day': '２日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-11', '2021-08-16'],\n            'status': '-',\n            'timeframe': '',\n            'title': '名鉄杯争奪２０２１納涼お盆レース'},\n     '平和島': {'day': '３日目',\n             'grade': ['ippan'],\n             'period': ['2021-08-10', '2021-08-15'],\n             'status': '-',\n             'timeframe': 'summer',\n             'title': '第６１回デイリースポーツサマーカップ'},\n     '戸田': {'day': '初日',\n            'grade': ['ippan'],\n            'period': ['2021-08-12', '2021-08-17'],\n            'status': '-',\n            'timeframe': '',\n            'title': '第４４回戸田ボート大賞・サンケイスポーツ杯'},\n     '桐生': {'day': '３日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-10', '2021-08-15'],\n            'status': '-',\n            'timeframe': 'nighter',\n            'title': '第５５回報知新聞社杯\\u3000お盆レース'},\n     '若松': {'day': '４日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-08', '2021-08-13'],\n            'status': '-',\n            'timeframe': 'nighter',\n            'title': '日刊スポーツ杯お盆特選競走'},\n     '蒲郡': {'day': '初日',\n            'grade': ['ippan'],\n            'period': ['2021-08-12', '2021-08-17'],\n            'status': '-',\n            'timeframe': 'nighter',\n            'title': '日刊スポーツ杯争奪\\u3000納涼しぶきお盆特別選抜戦'},\n     '鳴門': {'day': '４日目',\n            'grade': ['ippan'],\n            'period': ['2021-08-09', '2021-08-14'],\n            'status': '-',\n            'timeframe': 'morning',\n            'title': '第５４回渦王杯競走'}}\n    ```\n\n    \u003c/details\u003e\n\n- To get 12 races held in the given stadium on the given day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_12races(d: datetime.date, stadium: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().Races.get(d: datetime.date, stadium: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_12races(date(2021, 8, 12), 1))\n    {'10R': {'racers': {'boat1': {'class': 'B1', 'name': '佐藤航'},\n                        'boat2': {'class': 'A1', 'name': '大澤普司'},\n                        'boat3': {'class': 'A2', 'name': '橋本久和'},\n                        'boat4': {'class': 'A1', 'name': '江口晃生'},\n                        'boat5': {'class': 'B1', 'name': '土屋太朗'},\n                        'boat6': {'class': 'A2', 'name': '加瀬智宏'}},\n             'status': '発売終了',\n             'vote_limit': '2021-08-12 19:43:00'},\n     '11R': {'racers': {'boat1': {'class': 'A2', 'name': '藤生雄人'},\n                        'boat2': {'class': 'A1', 'name': '毒島誠'},\n                        'boat3': {'class': 'A2', 'name': '長谷川充'},\n                        'boat4': {'class': 'A1', 'name': '上村純一'},\n                        'boat5': {'class': 'B1', 'name': '津久井拓也'},\n                        'boat6': {'class': 'B1', 'name': '松本純平'}},\n             'status': '発売終了',\n             'vote_limit': '2021-08-12 20:14:00'},\n     '12R': {'racers': {'boat1': {'class': 'A1', 'name': '久田敏之'},\n                        'boat2': {'class': 'A1', 'name': '金子拓矢'},\n                        'boat3': {'class': 'A2', 'name': '木村浩士'},\n                        'boat4': {'class': 'A1', 'name': '椎名豊'},\n                        'boat5': {'class': 'A2', 'name': '本橋克洋'},\n                        'boat6': {'class': 'A2', 'name': '野村誠'}},\n             'status': '発売終了',\n             'vote_limit': '2021-08-12 20:45:00'},\n     '1R': {'racers': {'boat1': {'class': 'B1', 'name': '渡辺史之'},\n                       'boat2': {'class': 'B1', 'name': '島倉都'},\n                       'boat3': {'class': 'A2', 'name': '鳥居塚孝博'},\n                       'boat4': {'class': 'B1', 'name': '松本純平'},\n                       'boat5': {'class': 'A2', 'name': '橋本久和'},\n                       'boat6': {'class': 'B2', 'name': '宮崎安奈'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 15:22:00'},\n     '2R': {'racers': {'boat1': {'class': 'B1', 'name': '佐口達也'},\n                       'boat2': {'class': 'A2', 'name': '本橋克洋'},\n                       'boat3': {'class': 'B1', 'name': '寺本昇平'},\n                       'boat4': {'class': 'B1', 'name': '津久井拓也'},\n                       'boat5': {'class': 'B1', 'name': '久保原秀人'},\n                       'boat6': {'class': 'A2', 'name': '中里英夫'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 15:49:00'},\n     '3R': {'racers': {'boat1': {'class': 'B1', 'name': '小川時光'},\n                       'boat2': {'class': 'A2', 'name': '野村誠'},\n                       'boat3': {'class': 'B2', 'name': '黄金井裕子'},\n                       'boat4': {'class': 'A2', 'name': '藤生雄人'},\n                       'boat5': {'class': 'B1', 'name': '高山秀雄'},\n                       'boat6': {'class': 'A1', 'name': '関浩哉'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 16:16:00'},\n     '4R': {'racers': {'boat1': {'class': 'B1', 'name': '栗原謙治'},\n                       'boat2': {'class': 'A2', 'name': '金子賢志'},\n                       'boat3': {'class': 'B1', 'name': '関根彰人'},\n                       'boat4': {'class': 'A1', 'name': '金子拓矢'},\n                       'boat5': {'class': 'B2', 'name': '大久保佑香'},\n                       'boat6': {'class': 'B1', 'name': '土屋太朗'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 16:45:00'},\n     '5R': {'racers': {'boat1': {'class': 'B1', 'name': '原加央理'},\n                       'boat2': {'class': 'B1', 'name': '佐藤航'},\n                       'boat3': {'class': 'B1', 'name': '蜂須瑞生'},\n                       'boat4': {'class': 'A2', 'name': '一柳和孝'},\n                       'boat5': {'class': 'B1', 'name': '外崎悟'},\n                       'boat6': {'class': 'A1', 'name': '毒島誠'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 17:13:00'},\n     '6R': {'racers': {'boat1': {'class': 'A1', 'name': '椎名豊'},\n                       'boat2': {'class': 'B1', 'name': '久保田美紀'},\n                       'boat3': {'class': 'B1', 'name': '太田克哉'},\n                       'boat4': {'class': 'B1', 'name': '島倉都'},\n                       'boat5': {'class': 'B1', 'name': '金澤一洋'},\n                       'boat6': {'class': 'B1', 'name': '寺本昇平'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 17:42:00'},\n     '7R': {'racers': {'boat1': {'class': 'A2', 'name': '木村浩士'},\n                       'boat2': {'class': 'B1', 'name': '久保原秀人'},\n                       'boat3': {'class': 'A1', 'name': '上村純一'},\n                       'boat4': {'class': 'B1', 'name': '鹿島敏弘'},\n                       'boat5': {'class': 'B2', 'name': '宮崎安奈'},\n                       'boat6': {'class': 'B2', 'name': '黄金井裕子'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 18:11:00'},\n     '8R': {'racers': {'boat1': {'class': 'A2', 'name': '鳥居塚孝博'},\n                       'boat2': {'class': 'B1', 'name': '高山秀雄'},\n                       'boat3': {'class': 'B1', 'name': '吉田稔'},\n                       'boat4': {'class': 'B1', 'name': '田中定雄'},\n                       'boat5': {'class': 'A1', 'name': '久田敏之'},\n                       'boat6': {'class': 'B2', 'name': '大久保佑香'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 18:41:00'},\n     '9R': {'racers': {'boat1': {'class': 'B1', 'name': '崎利仁'},\n                       'boat2': {'class': 'A2', 'name': '中里英夫'},\n                       'boat3': {'class': 'B1', 'name': '塚原武之'},\n                       'boat4': {'class': 'A1', 'name': '土屋智則'},\n                       'boat5': {'class': 'B1', 'name': '関根彰人'},\n                       'boat6': {'class': 'A1', 'name': '山崎智也'}},\n            'status': '発売終了',\n            'vote_limit': '2021-08-12 19:12:00'},\n     'date': '2021-08-12',\n     'stadium': 1}\n    ```\n\n    \u003c/details\u003e\n\n- To get the basic information of the race in the stadium on a day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_race_info(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().RaceInfo.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_race_info(date(2021, 8, 12), 10, 1))\n    {'boat1': {'F': 0,\n               'L': 0,\n               'age': 47,\n               'aveST': 0.16,\n               'birthplace': '福井',\n               'boat': 13,\n               'boat_in2nd': 41.79,\n               'boat_in3rd': 58.21,\n               'branch': '福井',\n               'class': 'A1',\n               'global_in2nd': 40.45,\n               'global_in3rd': 53.93,\n               'global_win_pt': 5.73,\n               'local_in2nd': 52.38,\n               'local_in3rd': 67.46,\n               'local_win_pt': 6.94,\n               'motor': 44,\n               'motor_in2nd': 53.42,\n               'motor_in3rd': 63.01,\n               'name': '武田光史',\n               'racerid': 3654,\n               'result': [{'ST': 0.19,\n                           'boat': 5,\n                           'course': 5,\n                           'race': 6,\n                           'rank': 4},\n                          {'ST': 0.14,\n                           'boat': 3,\n                           'course': 3,\n                           'race': 12,\n                           'rank': 5},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 52.6},\n     'boat2': {'F': 0,\n               'L': 0,\n               'age': 25,\n               'aveST': 0.21,\n               'birthplace': '愛知',\n               'boat': 64,\n               'boat_in2nd': 22.67,\n               'boat_in3rd': 36.0,\n               'branch': '愛知',\n               'class': 'B1',\n               'global_in2nd': 10.17,\n               'global_in3rd': 20.34,\n               'global_win_pt': 3.18,\n               'local_in2nd': 3.33,\n               'local_in3rd': 3.33,\n               'local_win_pt': 2.0,\n               'motor': 24,\n               'motor_in2nd': 42.67,\n               'motor_in3rd': 68.0,\n               'name': '大澤誠也',\n               'racerid': 5074,\n               'result': [{'ST': 0.19,\n                           'boat': 3,\n                           'course': 3,\n                           'race': 6,\n                           'rank': 3},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 53.1},\n     'boat3': {'F': 0,\n               'L': 0,\n               'age': 45,\n               'aveST': 0.17,\n               'birthplace': '愛知',\n               'boat': 41,\n               'boat_in2nd': 29.33,\n               'boat_in3rd': 52.0,\n               'branch': '愛知',\n               'class': 'B1',\n               'global_in2nd': 29.79,\n               'global_in3rd': 54.26,\n               'global_win_pt': 5.39,\n               'local_in2nd': 31.48,\n               'local_in3rd': 51.85,\n               'local_win_pt': 5.09,\n               'motor': 51,\n               'motor_in2nd': 49.32,\n               'motor_in3rd': 63.01,\n               'name': '堀本裕也',\n               'racerid': 3895,\n               'result': [{'ST': 0.06,\n                           'boat': 5,\n                           'course': 5,\n                           'race': 4,\n                           'rank': 5},\n                          {'ST': 0.2,\n                           'boat': 2,\n                           'course': 2,\n                           'race': 11,\n                           'rank': 4},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 50.0},\n     'boat4': {'F': 0,\n               'L': 0,\n               'age': 47,\n               'aveST': 0.18,\n               'birthplace': '石川',\n               'boat': 36,\n               'boat_in2nd': 32.43,\n               'boat_in3rd': 44.59,\n               'branch': '福井',\n               'class': 'B1',\n               'global_in2nd': 17.17,\n               'global_in3rd': 29.29,\n               'global_win_pt': 3.99,\n               'local_in2nd': 21.59,\n               'local_in3rd': 35.23,\n               'local_win_pt': 4.45,\n               'motor': 41,\n               'motor_in2nd': 45.95,\n               'motor_in3rd': 64.86,\n               'name': '信濃由行',\n               'racerid': 3620,\n               'result': [{'ST': 0.26,\n                           'boat': 5,\n                           'course': 3,\n                           'race': 3,\n                           'rank': 5},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 52.3},\n     'boat5': {'F': 0,\n               'L': 0,\n               'age': 30,\n               'aveST': 0.19,\n               'birthplace': '石川',\n               'boat': 17,\n               'boat_in2nd': 21.79,\n               'boat_in3rd': 46.15,\n               'branch': '福井',\n               'class': 'B1',\n               'global_in2nd': 37.5,\n               'global_in3rd': 56.73,\n               'global_win_pt': 5.56,\n               'local_in2nd': 35.04,\n               'local_in3rd': 52.55,\n               'local_win_pt': 5.53,\n               'motor': 61,\n               'motor_in2nd': 43.28,\n               'motor_in3rd': 64.18,\n               'name': '木田峰由季',\n               'racerid': 4587,\n               'result': [{'ST': 0.19,\n                           'boat': 2,\n                           'course': 2,\n                           'race': 3,\n                           'rank': 3},\n                          {'ST': 0.21,\n                           'boat': 4,\n                           'course': 5,\n                           'race': 10,\n                           'rank': 2},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 52.2},\n     'boat6': {'F': 0,\n               'L': 0,\n               'age': 21,\n               'aveST': '-',\n               'birthplace': '福井',\n               'boat': 15,\n               'boat_in2nd': 26.76,\n               'boat_in3rd': 39.44,\n               'branch': '福井',\n               'class': 'B2',\n               'global_in2nd': 0.0,\n               'global_in3rd': 0.0,\n               'global_win_pt': 1.29,\n               'local_in2nd': 0.0,\n               'local_in3rd': 0.0,\n               'local_win_pt': 1.0,\n               'motor': 54,\n               'motor_in2nd': 43.84,\n               'motor_in3rd': 63.01,\n               'name': '加藤優弥',\n               'racerid': 5185,\n               'result': [{'ST': 0.01,\n                           'boat': 6,\n                           'course': 6,\n                           'race': 4,\n                           'rank': 6},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {},\n                          {}],\n               'weight': 52.6},\n     'date': '2021-08-12',\n     'race': 1,\n     'race_title': ['みくにあさイチ', '1800m'],\n     'stadium': 10}\n    ```\n\n    \u003c/details\u003e\n\n- To get the odds of win (単勝) and place-show (複勝) of the race in the stadium on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_odds_win_placeshow(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().WinPlaceshowOdds.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_odds_win_placeshow(date(2021, 8, 12), 10, 1))\n    {'date': '2021-08-12',\n     'place_show': {'1': [1.0, 1.0],\n                    '2': [2.5, 7.0],\n                    '3': [2.0, 5.5],\n                    '4': [2.3, 6.4],\n                    '5': [1.5, 4.0],\n                    '6': [3.8, 10.6]},\n     'race': 1,\n     'stadium': 10,\n     'update': '締切時オッズ',\n     'win': {'1': 1.0, '2': 20.7, '3': 11.0, '4': 18.4, '5': 23.6, '6': 27.6}}\n    ```\n\n    \u003c/details\u003e\n\n- To get the odds of quinella place (拡連複) of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_odds_quinellaplace(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().QuinellaplaceOdds.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_odds_quinellaplace(date(2021, 8, 12), 10, 1))\n    {'1=2': [1.6, 2.1],\n     '1=3': [1.1, 1.4],\n     '1=4': [3.7, 5.0],\n     '1=5': [1.1, 1.4],\n     '1=6': [18.1, 23.4],\n     '2=3': [6.1, 9.9],\n     '2=4': [10.6, 13.0],\n     '2=5': [4.1, 6.4],\n     '2=6': [30.1, 34.8],\n     '3=4': [5.1, 7.1],\n     '3=5': [1.9, 3.4],\n     '3=6': [16.9, 22.4],\n     '4=5': [6.4, 8.9],\n     '4=6': [50.0, 51.9],\n     '5=6': [16.0, 20.9],\n     'date': '2021-08-12',\n     'race': 1,\n     'stadium': 10,\n     'update': '締切時オッズ'}\n    ```\n\n    \u003c/details\u003e\n\n- To get the odds of exacta (二連単) and quinella (二連複) of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_odds_exacta_quinella(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().ExactaQuinellaOdds.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_odds_exacta_quinella(date(2021, 8, 12), 10, 1))\n    {'date': '2021-08-12',\n     'exacta': {'1-2': 4.8,\n                '1-3': 2.6,\n                '1-4': 7.2,\n                '1-5': 4.0,\n                '1-6': 63.9,\n                '2-1': 26.4,\n                '2-3': 75.9,\n                '2-4': 291.8,\n                '2-5': 132.6,\n                '2-6': 810.5,\n                '3-1': 15.9,\n                '3-2': 94.7,\n                '3-4': 110.5,\n                '3-5': 41.2,\n                '3-6': 429.1,\n                '4-1': 66.9,\n                '4-2': 260.5,\n                '4-3': 187.0,\n                '4-5': 105.7,\n                '4-6': 455.9,\n                '5-1': 13.5,\n                '5-2': 74.4,\n                '5-3': 47.9,\n                '5-4': 70.8,\n                '5-6': 97.2,\n                '6-1': 347.3,\n                '6-2': 663.2,\n                '6-3': 729.5,\n                '6-4': 729.5,\n                '6-5': 455.9},\n     'quinella': {'1=2': 4.8,\n                  '1=3': 1.8,\n                  '1=4': 6.1,\n                  '1=5': 4.4,\n                  '1=6': 73.8,\n                  '2=3': 79.5,\n                  '2=4': 94.0,\n                  '2=5': 36.9,\n                  '2=6': 172.3,\n                  '3=4': 64.6,\n                  '3=5': 16.6,\n                  '3=6': 206.8,\n                  '4=5': 33.3,\n                  '4=6': 172.3,\n                  '5=6': 129.2},\n     'race': 1,\n     'stadium': 10,\n     'update': '締切時オッズ'}\n    ```\n\n    \u003c/details\u003e\n\n- To get the odds of trifecta (三連単) of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_odds_trifecta(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBaotrace().TrifectaOdds.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_odds_trifecta(date(2021, 8, 12), 10, 1))\n    {'1-2-3': 12.1,\n     '1-2-4': 22.8,\n     '1-2-5': 10.7,\n     '1-2-6': 136.2,\n     '1-3-2': 11.2,\n     '1-3-4': 9.5,\n     '1-3-5': 5.2,\n     '1-3-6': 101.2,\n     '1-4-2': 33.9,\n     '1-4-3': 19.2,\n     '1-4-5': 18.8,\n     '1-4-6': 169.1,\n     '1-5-2': 11.9,\n     '1-5-3': 7.3,\n     '1-5-4': 16.0,\n     '1-5-6': 81.5,\n     '1-6-2': 400.4,\n     '1-6-3': 357.7,\n     '1-6-4': 399.1,\n     '1-6-5': 297.0,\n     '2-1-3': 143.1,\n     '2-1-4': 251.5,\n     '2-1-5': 135.8,\n     '2-1-6': 759.3,\n     '2-3-1': 274.6,\n     '2-3-4': 926.4,\n     '2-3-5': 574.7,\n     '2-3-6': 1866.0,\n     '2-4-1': 715.5,\n     '2-4-3': 1247.0,\n     '2-4-5': 981.4,\n     '2-4-6': 2853.0,\n     '2-5-1': 256.5,\n     '2-5-3': 542.1,\n     '2-5-4': 838.8,\n     '2-5-6': 1306.0,\n     '2-6-1': 2789.0,\n     '2-6-3': 3103.0,\n     '2-6-4': 4138.0,\n     '2-6-5': 2342.0,\n     '3-1-2': 81.8,\n     '3-1-4': 69.4,\n     '3-1-5': 35.9,\n     '3-1-6': 403.0,\n     '3-2-1': 238.0,\n     '3-2-4': 709.4,\n     '3-2-5': 432.5,\n     '3-2-6': 1469.0,\n     '3-4-1': 206.0,\n     '3-4-2': 684.0,\n     '3-4-5': 226.7,\n     '3-4-6': 1591.0,\n     '3-5-1': 82.6,\n     '3-5-2': 282.4,\n     '3-5-4': 221.2,\n     '3-5-6': 775.9,\n     '3-6-1': 1970.0,\n     '3-6-2': 2364.0,\n     '3-6-4': 3027.0,\n     '3-6-5': 2387.0,\n     '4-1-2': 330.1,\n     '4-1-3': 207.7,\n     '4-1-5': 179.9,\n     '4-1-6': 989.2,\n     '4-2-1': 780.8,\n     '4-2-3': 1452.0,\n     '4-2-5': 977.5,\n     '4-2-6': 2789.0,\n     '4-3-1': 477.4,\n     '4-3-2': 1286.0,\n     '4-3-5': 556.7,\n     '4-3-6': 2586.0,\n     '4-5-1': 259.4,\n     '4-5-2': 598.3,\n     '4-5-3': 399.1,\n     '4-5-6': 1030.0,\n     '4-6-1': 2728.0,\n     '4-6-2': 3310.0,\n     '4-6-3': 3762.0,\n     '4-6-5': 3267.0,\n     '5-1-2': 67.2,\n     '5-1-3': 46.4,\n     '5-1-4': 103.0,\n     '5-1-6': 287.0,\n     '5-2-1': 197.0,\n     '5-2-3': 420.8,\n     '5-2-4': 656.8,\n     '5-2-6': 1205.0,\n     '5-3-1': 100.8,\n     '5-3-2': 324.9,\n     '5-3-4': 332.8,\n     '5-3-6': 1149.0,\n     '5-4-1': 258.3,\n     '5-4-2': 625.4,\n     '5-4-3': 414.5,\n     '5-4-6': 1286.0,\n     '5-6-1': 800.9,\n     '5-6-2': 1205.0,\n     '5-6-3': 1279.0,\n     '5-6-4': 1724.0,\n     '6-1-2': 2320.0,\n     '6-1-3': 2257.0,\n     '6-1-4': 2921.0,\n     '6-1-5': 1786.0,\n     '6-2-1': 4070.0,\n     '6-2-3': 4514.0,\n     '6-2-4': 5643.0,\n     '6-2-5': 2921.0,\n     '6-3-1': 3598.0,\n     '6-3-2': 4774.0,\n     '6-3-4': 4433.0,\n     '6-3-5': 2387.0,\n     '6-4-1': 4514.0,\n     '6-4-2': 6534.0,\n     '6-4-3': 4138.0,\n     '6-4-5': 4004.0,\n     '6-5-1': 2559.0,\n     '6-5-2': 2698.0,\n     '6-5-3': 4070.0,\n     '6-5-4': 4774.0,\n     'date': '2021-08-12',\n     'race': 1,\n     'stadium': 10,\n     'update': '締切時オッズ'}\n    ```\n\n    \u003c/details\u003e\n\n- To get the oods of trio （三連複） of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_odds_trio(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().Trio.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_odds_trio(date(2021, 8, 12), 10, 1))\n    {'1=2=3': 5.1,\n     '1=2=4': 14.6,\n     '1=2=5': 4.7,\n     '1=2=6': 73.8,\n     '1=3=4': 5.9,\n     '1=3=5': 2.5,\n     '1=3=6': 73.8,\n     '1=4=5': 6.4,\n     '1=4=6': 106.6,\n     '1=5=6': 59.0,\n     '2=3=4': 98.4,\n     '2=3=5': 36.2,\n     '2=3=6': 295.3,\n     '2=4=5': 93.6,\n     '2=4=6': 426.5,\n     '2=5=6': 159.9,\n     '3=4=5': 45.7,\n     '3=4=6': 548.4,\n     '3=5=6': 191.9,\n     '4=5=6': 213.2,\n     'date': '2021-08-12',\n     'race': 1,\n     'stadium': 10,\n     'update': '締切時オッズ'}\n    ```\n\n    \u003c/details\u003e\n\n- To get the just-before information, e.g. weather and start-timing, of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_just_before_info(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().JustBeforeInfo.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_just_before_info(date(2021, 8, 12), 10, 1))\n    {'boat1': {'display_time': 6.77,\n               'name': '武田光史',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 52.6,\n               'weight_adjustment': 0.0},\n     'boat2': {'display_time': 6.76,\n               'name': '大澤誠也',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 53.1,\n               'weight_adjustment': 0.0},\n     'boat3': {'display_time': 6.77,\n               'name': '堀本裕也',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 50.0,\n               'weight_adjustment': 2.0},\n     'boat4': {'display_time': 6.77,\n               'name': '信濃由行',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 52.3,\n               'weight_adjustment': 0.0},\n     'boat5': {'display_time': 6.79,\n               'name': '木田峰由季',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 52.2,\n               'weight_adjustment': 0.0},\n     'boat6': {'display_time': 6.81,\n               'name': '加藤優弥',\n               'parts_exchange': [],\n               'previous_race': {},\n               'propeller': '',\n               'tilt': -0.5,\n               'weight': 52.6,\n               'weight_adjustment': 0.0},\n     'date': '2021-08-12',\n     'race': 1,\n     'stadium': 10,\n     'start_display': {'course1': {'ST': 0.11, 'boat': 1},\n                       'course2': {'ST': 0.13, 'boat': 2},\n                       'course3': {'ST': 0.22, 'boat': 3},\n                       'course4': {'ST': 0.17, 'boat': 4},\n                       'course5': {'ST': 0.11, 'boat': 5},\n                       'course6': {'ST': 0.13, 'boat': 6}},\n     'weather_information': {'direction': 14,\n                             'temperature': 25.0,\n                             'time': '14:53現在',\n                             'water_temperature': 27.0,\n                             'wave_height': 1.0,\n                             'weather': '曇り',\n                             'wind_direction': 2,\n                             'wind_speed': 1.0}}\n    ```\n\n    \u003c/details\u003e\n\n- To get the race result of the race in the stadioum on the day:\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().get_race_result(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n    - ```python\n      PyJPBoatrace().Result.get(d: datetime.date, stadium: int, race: int) -\u003e Dict[str, Any]\n      ```\n\n  - Return:\n    \u003cdetails\u003e\n    \u003csummary\u003e Sample \u003c/summary\u003e\n\n    ```python\n    \u003e\u003e\u003e from pyjpboatrace import PyJPBoatrace\n    \u003e\u003e\u003e from datetime import date\n    \u003e\u003e\u003e from pprint import pprint\n    \u003e\u003e\u003e pprint(PyJPBoatrace().get_race_result(date(2021, 8, 12), 10, 1))\n    {'date': '2021-08-12',\n     'kimarite': '逃げ',\n     'note': [],\n     'payoff': {'exacta': {'payoff': 400, 'popularity': 2, 'result': '1-5'},\n                'exacta_all': [{'payoff': 400, 'popularity': 2, 'result': '1-5'}],\n                'place_show': [{'payoff': 100, 'popularity': '', 'result': '1'},\n                               {'payoff': 150, 'popularity': '', 'result': '5'}],\n                'place_show_all': [{'payoff': 100, 'popularity': '', 'result': '1'},\n                                   {'payoff': 150,\n                                    'popularity': '',\n                                    'result': '5'}],\n                'quinella': {'payoff': 440, 'popularity': 2, 'result': '1=5'},\n                'quinella_all': [{'payoff': 440, 'popularity': 2, 'result': '1=5'}],\n                'quinella_place': [{'payoff': 110,\n                                    'popularity': 2,\n                                    'result': '1=5'},\n                                   {'payoff': 110,\n                                    'popularity': 1,\n                                    'result': '1=3'},\n                                   {'payoff': 190,\n                                    'popularity': 4,\n                                    'result': '3=5'}],\n                'quinella_place_all': [{'payoff': 110,\n                                        'popularity': 2,\n                                        'result': '1=5'},\n                                       {'payoff': 110,\n                                        'popularity': 1,\n                                        'result': '1=3'},\n                                       {'payoff': 190,\n                                        'popularity': 4,\n                                        'result': '3=5'}],\n                'trifecta': {'payoff': 730, 'popularity': 2, 'result': '1-5-3'},\n                'trifecta_all': [{'payoff': 730,\n                                  'popularity': 2,\n                                  'result': '1-5-3'}],\n                'trio': {'payoff': 250, 'popularity': 1, 'result': '1=3=5'},\n                'trio_all': [{'payoff': 250, 'popularity': 1, 'result': '1=3=5'}],\n                'win': {'payoff': 100, 'popularity': '', 'result': '1'},\n                'win_all': [{'payoff': 100, 'popularity': '', 'result': '1'}]},\n     'race': 1,\n     'result': [{'boat': 1,\n                 'name': '武田光史',\n                 'racerid': 3654,\n                 'rank': 1,\n                 'time': '1\\'49\"2'},\n                {'boat': 5,\n                 'name': '木田峰由季',\n                 'racerid': 4587,\n                 'rank': 2,\n                 'time': '1\\'50\"8'},\n                {'boat': 3,\n                 'name': '堀本裕也',\n                 'racerid': 3895,\n                 'rank': 3,\n                 'time': '1\\'52\"6'},\n                {'boat': 2,\n                 'name': '大澤誠也',\n                 'racerid': 5074,\n                 'rank': 4,\n                 'time': '1\\'54\"1'},\n                {'boat': 6, 'name': '加藤優弥', 'racerid': 5185, 'rank': 5, 'time': ''},\n                {'boat': 4,\n                 'name': '信濃由行',\n                 'racerid': 3620,\n                 'rank': 6,\n                 'time': ''}],\n     'return': [],\n     'stadium': 10,\n     'start_information': {'course1': {'ST': 0.26, 'boat': 1},\n                           'course2': {'ST': 0.25, 'boat': 2},\n                           'course3': {'ST': 0.23, 'boat': 3},\n                           'course4': {'ST': 0.25, 'boat': 4},\n                           'course5': {'ST': 0.21, 'boat': 5},\n                           'course6': {'ST': 0.17, 'boat': 6}},\n     'weather_information': {'direction': 14,\n                             'temperature': 27.0,\n                             'water_temperature': 26.0,\n                             'wave_height': 1,\n                             'weather': '曇り',\n                             'wind_direction': 12,\n                             'wind_speed': 1}}\n    ```\n\n    \u003c/details\u003e\n\n  - NOTE: you may be confused by the output of `PyJPBoatrace().get_race_result` because the contents of \"payoff\" key in the output have the following keys:\n\n    - \"exacta\"\n    - \"exacta_all\"\n    - \"place_show\"\n    - \"place_show_all\"\n    - \"quinella\"\n    - \"quinella_all\"\n    - \"quinella_place\"\n    - \"quinella_place_all\"\n    - \"trifecta\"\n    - \"trifecta_all\"\n    - \"trio\"\n    - \"trio_all\"\n    - \"win\"\n    - \"win_all\"\n\n    For \"win\", \"exacta\", \"quinella\", \"trifecta\" and \"trio\", the difference between a key without \"all\" footer and a key with \"all\" footer is that the former means ONE result while the latter means ALL results.\n    For example, if \"1-2-3\" and \"1-2-4\" is hit as trifecta in a race, that is, if 3rd boat and 4th boat are tied for third place, the valud of \"trifecta\" key is `{'payoff': ..., 'popularity': ..., 'result': '1-2-3'}` while the value of \"trifecta_all\" key is `[{'payoff': ..., 'popularity': ..., 'result': '1-2-3'}, {'payoff': ..., 'popularity': ..., 'result': '1-2-4'}]`.\n    On the other hand, for \"place_show\" and \"quinella_place\", there is no difference between a key without \"all\" footer and a key with \"all\" footer.\n\nThese functions return `dict` object.\n\n#### Operations\n\n- To deposit money for betting (Unit: 1,000 yen):\n  - API\n    - `PyJPBoatrace().deposit(num_of_thousands_yen: int) -\u003e None`\n    - `PyJPBoatrace().Deposit.do(num_of_thousands_yen: int) -\u003e None`\n  - Return:\n    - Nothing\n- To get the limit of betting amount, that is, your current deposit:\n  - API\n    - `PyJPBoatrace().get_bet_limit() -\u003e int`\n    - `PyJPBoatrace().BettingLimitCheck.do() -\u003e int`\n  - Return:\n    - `int`: the amount of deposit\n- To withdraw your current deposit:\n\n  - API:\n\n    - `PyJPBoatrace().withdraw() -\u003e None`\n    - `PyJPBoatrace().Widthdraw.do() -\u003e None`\n\n  - Return:\n    - Nothing\n\n- To bet some tickets.\n\n  - API:\n\n    - ```python\n      PyJPBoatrace().bet(\n        stadium:int,\n        race:int,\n        trifecta_betting_dict: Dict[str, int],\n        trio_betting_dict: Dict[str, int],\n        exacta_betting_dict: Dict[str, int],\n        quinela_betting_dict: Dict[str, int],\n        quinellaplace_betting_dict: Dict[str, int],\n        win_betting_dict: Dict[str, int],\n        placeshow_betting_dict: Dict[str, int],\n      ) -\u003e bool\n      ```\n\n    - ```python\n      PyJPBoatrace().Bet.do(\n        stadium:int,\n        race:int,\n        trifecta_betting_dict: Dict[str, int],\n        trio_betting_dict: Dict[str, int],\n        exacta_betting_dict: Dict[str, int],\n        quinela_betting_dict: Dict[str, int],\n        quinellaplace_betting_dict: Dict[str, int],\n        win_betting_dict: Dict[str, int],\n        placeshow_betting_dict: Dict[str, int],\n      ) -\u003e bool\n      ```\n\n  - Each dictionary consits of pairs of winning numbers and betting amount, e.g., `{'1-2-3':100}` for trifecta_betting_dict\n\nIMPORTANT NOTE: you must give a driver other than `HTTPGetDriver` to use above actions.\n\n### Demo\n\n#### Demo 1 : Getting odds data\n\nThe following example is useful.\nSuppose that you want get the odds of trifecta of 4th race in stadium \"桐生\" on 2020/12/02 and dump the result into `data.json`.\n\n```python\nfrom datetime import date\nimport json\nfrom pyjpboatrace import PyJPBoatrace\n\n# initialize\nboatrace_tools = PyJPBoatrace()\n\n# get data\ndic = boatrace_tools.get_odds_trifecta(d=date(2020,12,2), stadium=1, race=4)\n\n# dump data\nwith open('data.json', 'w', encoding='utf-8') as f:\n    json.dump(dic, f, ensure_ascii=False)\n\n# close (you can use 'with' statement)\nboatrace_tools.close()\n```\n\nYou can get many kinds of data as this example.\n\n#### Demo 2 : Betting\n\nSuppose it is 2020/12/02 and you want to bet 200 yen on trifecta 1-3-4 and 100 yen on trio 1=3=4 in the 2nd race in stadium \"桐生\" on 2020/12/02. NOTE: you need google chrome in the following example.\n\n```python\nfrom datetime import date\nfrom pyjpboatrace import PyJPBoatrace\nfrom pyjpboatrace.drivers import create_chrome_driver\nfrom pyjpboatrace.const import STADIUMS_MAP\nfrom pyjpboatrace.user_information import UserInformation\n\n# initialize\nuser = UserInformation(\n    userid='YOUR_USER_ID',\n    pin='YOUR_PIN',\n    auth_pass='YOUR_AUTHENTIFICATION_PASSWORD',\n    vote_pass='YOUR_BETTING_PASSWORD',\n)\nboatrace_tools = PyJPBoatrace(\n    driver=create_chrome_driver(),\n    user_information=user\n)\n\n# deposit 1,000 yen\nboatrace_tools.deposit(1)\n\n# bet\nstadium = {s:i for i,s in STADIUMS_MAP}.get(\"桐生\")\nrace = 2\nboatrace_tools.bet(\n    stadium=stadium,\n    race=race,\n    trifecta_betting_dict={'1-3-4':200},\n    trio_betting_dict={'1=3=4':100}\n)\n\n# waiting for the race result ...\n\n# withdraw\nboatrace_tools.withdraw()\n\n# close (you can use 'with' statement)\nboatrace_tools.close()\n```\n\n### NOTE\n\nThe map between integers and stadiums is given by `STADIUMS_MAP` in `pyjpboatrace.const`.\n\n## Contribution Guide\n\n### Requirement\n\n- Python \u003e= 3.9\n  - uv\n- Chrome\n- Firefox\n- bash\n- curl\n\n### Issues\n\n- For any bugs, use [BUG REPORT](https://github.com/hmasdev/pyjpboatrace/issues/new?assignees=\u0026labels=bug\u0026template=bug_report.md\u0026title=%5BBUG%5D) to create an issue.\n\n- For any enhancement, use [FEATURE REQUEST](https://github.com/hmasdev/pyjpboatrace/issues/new?assignees=\u0026labels=enhancement\u0026template=feature_request.md\u0026title=) to create an issue.\n\n- For other topics, create an issue with a clear and concise description.\n\n### Pull Request\n\n1. Fork ([https://github.com/hmasdev/pyjpboatrace/fork](https://github.com/hmasdev/pyjpboatrace/fork));\n2. Create your feature branch (`git checkout -b feautre/xxxx`);\n3. Test codes according to [Test Subsection](#HowToTestAnchor);\n4. Commit your changes (`git commit -am 'Add xxxx feature`);\n5. Push to the branch (`git push origin feature/xxxx`);\n6. Create new Pull Request\n\n### Setup the develop environment\n\nFirst, fork this repository and clone it to your local machine.\n\n```bash\ngit clone https://github.com/hmasdev/pyjpboatrace/\ncd pyjpboatrace\n```\n\nThen, create your development environment with `uv`.\n\n```bash\nuv sync --dev\n```\n\n### Test\n\n\u003cdiv id=\"HowToTestAnchor\"\u003e\u003c/div\u003e\n\nYou can do unit tests and integration tests as follows:\n\n```bash\n./download_html_for_test.sh  # Only 1 time\nuv run pytest -m \"not integrate and not spending_money\" # unit tests\nuv run pytest # unit tests and integration tests\n```\n\n`pytest` does not test depositing, withdrawing or betting.\nIf you want to test them, make `.secrets.json` at first:\n\n```json\n{\n  \"userid\": \"YOUR_USER_ID\",\n  \"pin\": \"YOUR_PIN\",\n  \"auth_pass\": \"YOUR_AUTHENTIFICATION_PASSWORD\",\n  \"vote_pass\": \"YOUR_BETTING_PASSWORD\"\n}\n```\n\nThen, run\n\n```bash\nuv run pytest -m \"spending_money\"\n```\n\nWARNING: Tests with `spending_money` spend 700 yen.\n\n### Check the format of code and static types\n\nYou should execute the following codes to check the format of code and static types:\n\n```bash\nuv run ruff check pyjpboatrace tests\nuv run mypy pyjpboatrace tests\n```\n\n### How to Update README.md\n\nTo update the content of [README.md](./README.md), please do not edit the file directly.\nInstead, make your changes to [README.md.j2](./README.md.j2).\n\nAfter making updates to `README.md.j2`, execute the following command to regenerate `README.md`:\n\n```bash\nuv run update_readme.py \u003e README.md\n```\n\nThis process is necessary because README.md is dynamically generated from the README.md.j2 template.\nDirect modifications to README.md will be lost, as they are automatically overwritten by an automated process whenever the template is updated.\n\nRemember, to preserve your changes, always update README.md.j2 and not README.md directly.\n\n## LICENSE\n\n[MIT](https://github.com/hmasdev/pyjpboatrace/tree/main/LICENSE)\n\n## Authors\n\n[hmasdev](https://github.com/hmasdev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmasdev%2Fpyjpboatrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmasdev%2Fpyjpboatrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmasdev%2Fpyjpboatrace/lists"}