GithubHelp home page GithubHelp logo

cstenmt / boatrace Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 3.0 218 KB

競艇公式サイトhttps://www.boatrace.jp/owpc/pc/extra/data/download.htm より選手データ、成績、レース結果を一括でCSVダウンロードするスクリプトです。

Python 45.72% Makefile 1.39% C 52.89%

boatrace's Introduction

作成日 2018/1/4 

■環境
python version :3.5
os : windows


■事前準備
スクリプトを実行する前に、lhafileというモジュールをインストールして頂く必要があります。
カレントディレクトリを python-lhafile-0.2.1 にしてから、

py setup.py build
py setup.py install

を実行してください。
設定によっては、py は python かもしれないです。

■ファイル・ディレクトリ説明

XXXX_lzh:lzhのダウンロード先です。 
XXXX_txt:解凍されたlzhファイルの保存先です。
XXXX_csv: csvファイルが出力されます。

download_xxxx:サイトから、lzhファイルをダウンロードします。
unlzh_xxxx:lzhファイルを解凍します。
txtTocsv_xxxx:ttxtファイルをcsvに変換します。

XXXXの部分には
plyers:選手別データ
results:成績表
timetable:番組表
のいづれかが入ります。

■使用方法

download_xxxx → unlzh_xxxx → txtTocsv_xxxx の順で実行してください。

resultsとtimetableについては、スクリプトを編集し、対象期間を変更する必要があります。
現状では、2002にから、2017になっています。
詳細は各スクリプトのコメントをご覧ください。











boatrace's People

Contributors

cstenmt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.