Giter Club home page Giter Club logo

lotto_data's Introduction

로또 당첨 번호 데이터

1회 부터 현재까지 로또 당첨 번호 데이터베이스

로또 당첨 번호 Tool

설치 방법

1. Git Clone

$ git clone https://github.com/happylie/lotto_data.git

2. Requirements 설치

$ pip install -r requirements.txt

실행 방법

1. Help

$ python lotto_data.py -h
usage: lotto [-h] [-d DB_PATH] [-i] [-s] [-t [TOP]] [-c [CUSTOM]] [-sr [SROUND]] [-er [EROUND]] [-exb] [-v]

로또 최신 당첨번호 입력 및 통계 Tool

optional arguments:
  -h, --help            show this help message and exit
  -d DB_PATH, --db DB_PATH
                        로또 당첨번호 DataBase Path
  -i, --insert          최신 로또 당첨번호 DataBase Insert
  -s, --stat            로또 당첨번호 통계
  -t [TOP], --top [TOP]
                        로또 당첨번호 전체 top 통계
  -c [CUSTOM], --custom [CUSTOM]
                        로또 당첨번호 Custom top 통계
  -sr [SROUND], --sround [SROUND]
                        로또 당첨번호 top 통계
  -er [EROUND], --eround [EROUND]
                        로또 당첨번호 top 통계
  -exb, --ex_bonus      보너스볼 제외
  -v, --version         show program's version number and exit

2. 최신 로또 데이터 등록

$ python ex_lotto.py -i                    
정상적으로 1032회 로또 당첨 번호를 데이터베이스에 등록하였습니다.

3. 전체 당첨번호 통계 확인

$ python lotto_data.py -s
### 1회 ~ 1032회 전체 통계 ###
43번 : 180개
34번 : 178개
1번 : 175개
... 이하 생략 ...

4. 전체 당첨번호 보너스볼 제외 통계 확인

$ python lotto_data.py -s -exb
### 1회 ~ 1032회 보너스볼 제외 통계 ###
34번 : 158개
18번 : 154개
12번 : 151개
... 이하 생략 ...

5. 당첨번호 Top 통계 확인

$ python lotto_data.py -t
### 1회 ~ 1032회 Top 6 전체 통계 ###
43번 : 180개
34번 : 178개
1번 : 175개
27번 : 175개
12번 : 174개
17번 : 174개

$ python lotto_data.py -t 10
### 1회 ~ 1032회 Top 10 전체 통계 ###
43번 : 180개
34번 : 178개
1번 : 175개
27번 : 175개
12번 : 174개
17번 : 174개
13번 : 174개
18번 : 171개
39번 : 170개
33번 : 170개

6. 당첨번호 Top 보너스볼 제외 통계 확인

$ python lotto_data.py -t -exb
### 1회 ~ 1032회 Top 6 보너스볼 제외 통계 ###
34번 : 158개
18번 : 154개
12번 : 151개
27번 : 149개
17번 : 148개
13번 : 148개

$ python lotto_data.py -t 10 -exb
### 1회 ~ 1032회 Top 10 보너스볼 제외 통계 ###
34번 : 158개
18번 : 154개
12번 : 151개
27번 : 149개
17번 : 148개
13번 : 148개
39번 : 148개
1번 : 146개
14번 : 146개
45번 : 146개

7. 당첨번호 커스텀 Top 통계 확인

$ python lotto_data.py -c -sr 1000 -er 1032
### 1000회 ~ 1032회 Top 6 전체 통계 ###
12번 : 10개
29번 : 9개
15번 : 8개
35번 : 8개
45번 : 8개
18번 : 8개

$ python lotto_data.py -c 10 -sr 1000 -er 1032
### 1000회 ~ 1032회 Top 10 전체 통계 ###
12번 : 10개
29번 : 9개
15번 : 8개
35번 : 8개
45번 : 8개
18번 : 8개
11번 : 7개
34번 : 7개
32번 : 6개
42번 : 6개

8.당첨번호 커스텀 Top 보너스볼 제외 통계 확인

$ python lotto_data.py -c -sr 1000 -er 1032 -exb
### 1000회 ~ 1032회 Top 6 보너스볼 제외 통계 ###
12번 : 10개
29번 : 9개
45번 : 8개
35번 : 7개
18번 : 7개
11번 : 7개

$ python lotto_data.py -c 10 -sr 1000 -er 1032 -exb
### 1000회 ~ 1032회 Top 10 보너스볼 제외 통계 ###
12번 : 10개
29번 : 9개
45번 : 8개
35번 : 7개
18번 : 7개
11번 : 7개
15번 : 6개
41번 : 6개
34번 : 6개
8번 : 5개

데이터 스키마

tb_lotto_list

  • 각회별 로또 당첨 번호 리스트
필드명 Type 설명
round INTEGER 회차
date TEXT 회차 추첨일
1st INTEGER 1번째 번호
2nd INTEGER 2번째 번호
3rd INTEGER 3번째 번호
4th INTEGER 4번째 번호
5th INTEGER 5번째 번호
6th INTEGER 6번째 번호
bonus INTEGER 보너스 번호

table_info

lotto_data's People

Contributors

happylie avatar

Stargazers

 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.