Skip to main content

동행복권 비공식 API

Project description

DongHaeng Lottery API (Unofficial)

동행복권 사이트를 터미널에서 이용할 수 있게 랩핑한 API입니다.

Python 3.8 이상에서 설치해야 최신버전이 작동합니다.

구현된 기능

사용법

사전준비: 계정 정보 세팅

~/.dhapi_profile 파일에 아이디와 패스워드를 입력하면 자동으로 로그인합니다. (-p 인자를 이용해 경로를 임의로 지정할 수도 있습니다)

```sh
echo $USER_ID > ~/.dhapi_profile # 첫째 줄은 아이디
echo $USER_PW >> ~/.dhapi_profile # 둘째 줄은 비밀번호 (미리 복잡한 난수로 변경하시길 권장합니다)
```

-u $USER_ID 파라미터를 이용하면 명령어 실행 중 비밀번호를 입력받는 방법도 있지만, 권장하지 않습니다.

설치 밎 사용법:

pip install dhapi
dhapi -h
dhapi buy_lotto645 -q # 프로필 파일을 이용해 계정 정보 입력 & 자동모드로 5장 구매

기여하기

기여는 대환영입니다! CONTRIBUTING.md 파일을 참고해주세요.

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

dhapi-1.3.4.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dhapi-1.3.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file dhapi-1.3.4.tar.gz.

File metadata

  • Download URL: dhapi-1.3.4.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dhapi-1.3.4.tar.gz
Algorithm Hash digest
SHA256 d27c188f69f7cca4cb1596b777e18597f44030678ba9dcce43399680ce0871c3
MD5 24aecf495b04fa14d184a8d29a2cede6
BLAKE2b-256 571784182c1880c675abc486f85e4c5b1d726c497efcaebf68ab1f47180d2245

See more details on using hashes here.

File details

Details for the file dhapi-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: dhapi-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for dhapi-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 78eef6d17f574aad58d936575711769b18a62403126d13730a7b4d20f0738202
MD5 6f354a641415a12202a2e7a97f23aa83
BLAKE2b-256 a6dd4b1737c098977194578f774c28d2f35c864a4e6a4b36309668cc236fa453

See more details on using hashes here.

Supported by

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