Skip to main content

this module extracts odds(rate) of hourse race held today

Project description

# OddsWacther

## Environment Python 3.5.1

## Usage

### install enter below commands

`sudo pip install git+https://github.com/PinkPhayate/OddsWatcher`

### how to use ` from oddsman import oddsman ods = oddsman.OddsWatcher() `

## Document of API ### get_race_ids(time: str)

  • paramater

    time: str 日付

  • feature

    パラメータで入力した日付のレースを確認し、あれば出走時刻をkeyとしたdicttionaryを返す

  • example

` from oddsman import OddsWatcher odds_man = OddsWatcher() todays_race_id = odds_man.get_race_ids('0625') # => {'10:45': '201702010403', '10:55': '201705030803', '16:15': '201705030812', '12:35': '201702010406', '12:55': '201709030806', '12:45': '201705030806', '11:05': '201709030803', '10:05': '201709030801', '15:30': '201705030811', '13:35': '201702010408', '12:25': '201709030805', '13:15': '201705030807', '09:55': '201705030801', '10:15': '201702010402', '14:15': '201705030809', '14:50': '201705030810', '10:35': '201709030802', '14:05': '201702010409', '15:40': '201709030811', '16:30': '201709030812', '10:25': '201705030802', '12:15': '201705030805', '12:05': '201702010405', '16:05': '201702010412', '11:35': '201709030804', '14:40': '201702010410', '15:01': '201709030810', '15:20': '201702010411', '13:25': '201709030807', '13:45': '201705030808', '09:50': '201702010401', '13:05': '201702010407', '14:25': '201709030809', '11:15': '201702010404', '13:55': '201709030808', '11:25': '201705030804'} `

### get_race_odds(race_id: str)

  • paramater

    race_id: str レースid

  • feature

    オッズを調べたいレースのidを入力すると、オッズが返ってくる

  • example

` from oddsman import OddsWatcher odds_man = OddsWatcher() race_id = '201702010412' odds_dict = odds_man.get_race_odds(race_id) # => {津軽海峡特別: ['61.0', '93.9', '33.4', '69.3', '1.6', '7.9', '44.9', '11.3', '3.5', '22.1']} `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oddsman-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

oddsman-0.1.1-py3.5.egg (6.1 kB view details)

Uploaded Source

File details

Details for the file oddsman-0.1.1.tar.gz.

File metadata

  • Download URL: oddsman-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for oddsman-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec808d685622b8106c287d4bb910e77a3c531d66639b2838484ec7e0a4f67527
MD5 b4f2bcafbc6fdcb446064d7d54cea5ce
BLAKE2b-256 a878256515efbf53e3239ce1b9323a9468ee74afa0911431ed7296fda0416550

See more details on using hashes here.

File details

Details for the file oddsman-0.1.1-py3.5.egg.

File metadata

  • Download URL: oddsman-0.1.1-py3.5.egg
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for oddsman-0.1.1-py3.5.egg
Algorithm Hash digest
SHA256 11d1993069174d95933376e5ef33bbd4a7b6122b85abda42a4ca314fd41914e0
MD5 db788065837de0d8ab1f68466ad8ddd0
BLAKE2b-256 5f76b88076a1f6c4021e5f39565a4536c9cfc84d16cab43cfcc2dcd7bbe2b96d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page