# Show GN: dhapi - 동행복권 로또 6/45 구매하는 파이썬 라이브러리

> Clean Markdown view of GeekNews topic #8821. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8821](https://news.hada.io/topic?id=8821)
- GeekNews Markdown: [https://news.hada.io/topic/8821.md](https://news.hada.io/topic/8821.md)
- Type: show
- Author: [roeniss](https://news.hada.io/@roeniss)
- Published: 2023-03-28T15:02:59+09:00
- Updated: 2023-03-28T15:02:59+09:00
- Original source: [github.com/roeniss](https://github.com/roeniss/dhlottery-api)
- Points: 26
- Comments: 11

## Topic Body

터미널에서 동행복권을 구매할 수 있게 만든 라이브러리입니다.  
  
```  
pip install dhapi  
dhapi -U $YOUR_ID -P -K lotto645 -T buy -M auto -C 5  
# -C 옵션은 1 ~ 5 사이에서 변경 가능. -K, -T, -M 은 고정.  
```  
- 동행복권 홈페이지를 이용해 미리 예치금을 넣어두셔야 작동합니다.   
- 별도 서버에 계정 정보나 구매 정보를 기록하지 않습니다 (다이렉트로 동행복권 서버에 액세스합니다).  
  
매번 홈페이지 들어가기 귀찮아서 만들게 되었습니다. 각 파라미터마다 여러 옵션을 줄 수 있게 하려고 했는데 제가 로또 6/45만 구매하기 때문에 따로 더 만들진 않았습니다.

## Comments



### Comment 15761

- Author: isaja9
- Created: 2023-04-21T09:06:43+09:00
- Points: 1

혹시 이거 지금도 되나요 개발자님? 잘되다가 갑자기 안되성..

### Comment 15762

- Author: isaja9
- Created: 2023-04-21T09:25:32+09:00
- Points: 1
- Parent comment: 15761
- Depth: 1

혹시 python 버전이랑 상관이 있는지요? 서버쪽 3.6 인데.. 3.8에선 돌아가네요;

### Comment 15763

- Author: roeniss
- Created: 2023-04-21T09:50:13+09:00
- Points: 1
- Parent comment: 15762
- Depth: 2

버전 이슈인것 같습니다. ㅠㅠ 3.6 호환성은 시간이 좀 걸릴 것 같습니다. 이슈 22를 확인해주세요.

### Comment 15447

- Author: ifmkl
- Created: 2023-03-30T08:41:12+09:00
- Points: 1

오우 엄청나네요

### Comment 15438

- Author: isaja9
- Created: 2023-03-29T09:50:30+09:00
- Points: 1

오오오 매주 사고 있는데 감사합니다!

### Comment 15442

- Author: roeniss
- Created: 2023-03-29T13:02:12+09:00
- Points: 1
- Parent comment: 15438
- Depth: 1

제가 더 감사합니다 ! 근데 Show 에 올린줄 알았는데 제가 헷갈린것 같군요 ㅋㅋ

### Comment 15449

- Author: moderator
- Created: 2023-03-30T08:59:52+09:00
- Points: 2
- Parent comment: 15442
- Depth: 2

Show GN으로 수정해두었습니다

### Comment 15436

- Author: nicewook
- Created: 2023-03-29T09:43:12+09:00
- Points: 1

오~ 이거 만들어볼 수 있겠다 싶었는데!  
맛집니다. :-)

### Comment 15441

- Author: roeniss
- Created: 2023-03-29T13:01:51+09:00
- Points: 1
- Parent comment: 15436
- Depth: 1

감사합니다 혹시 생각하시던 기능이 없으시면... 이슈 남겨주세요 ㅎㅎ

### Comment 15435

- Author: ruinnel
- Created: 2023-03-29T09:38:45+09:00
- Points: 1

마지막줄 로또 6/25... 오타인듯합니다.

### Comment 15440

- Author: roeniss
- Created: 2023-03-29T13:01:40+09:00
- Points: 1
- Parent comment: 15435
- Depth: 1

@xguru 님이 고쳐주신 것 같네요ㅎㅎㅎ 제보 감사합니다
