Skip to main content

Milli Piyango Package

This is a package for getting lottery related data from Milli Piyango.

Installation

pip install milli-piyango

Usage

For most case:

from milli_piyango import MilliPiyango as mP


# Getting available game list
print(mP.GAME_LIST)

# Get available drawing dates for given games
# Available game names
# - mP.PIYANGO
# - mP.SAYISAL
# - mP.SANS_TOPU
# - mP.ON_NUMARA
# - mP.SUPER_LOTO
dates = mP().get_draw_dates(mP.ON_NUMARA)
# [ {'tarih': '20180730', 'tarihView': '30-07-2018'}, ... ]

# Get game result for given date
last_drawing_result = mP().get_result(mP.ON_NUMARA, dates[0]['tarih']) # For the last drawing result

# Winner numbers in order 
print(last_drawing_result['data']['rakamlarNumaraSirasi'])
# '08 - 11 - 15 - 16 - 17 - 18 - 20 - 25 - 28 - 30 - 34 - 39 - 40 - 43 - 48 - 53 - 59 - 64 - 66 - 67 - 71 - 79'

If you want to search a number (ticket number) is winner or not in Piyango game;

from milli_piyango import MilliPiyango as mP


mP().get_result_for_piyango("20180729", "179604") # First parameter is Date, second one is Ticket Number
# {'kazandi': True, 'tip': '$6_RAKAM', 'ikramiye': 2500000, 'kacBildi': 6, 'numara': '179604', 'biletNo': '179604'}
mP().get_result_for_piyango("20180729", "178630")
# {'kazandi': True, 'tip': 'SON_BES_RAKAM', 'ikramiye': 400, 'kacBildi': 5, 'numara': '78630', 'biletNo': '178630'}
mP().get_result_for_piyango("20180729", "189604")
# {'kazandi': True, 'tip': 'AMORTI', 'ikramiye': 24, 'kacBildi': 1, 'numara': '4', 'biletNo': '189604'}
mP().get_result_for_piyango("20180729", "123452")
# {'kazandi': False, 'biletNo': '123452'}

Metadata

Release files for milli-piyango 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milli-piyango 1.1.0
File Size Uploaded
milli_piyango-1.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milli-piyango 1.1.0
File Interpreter ABI Platform
milli_piyango-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / milli_piyango-1.1.0.tar.gz

Download URL milli_piyango-1.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
426b925795b588d94e084c4852b4ff51d3cf249f1fb61a58d7153cba75ce1042
BLAKE2b-256 checksum
How to use checksums
1e07623cc7c522ec8e933bb8c22bd3c1a4307566c11309515b2c0065686eec30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

Release files / milli_piyango-1.1.0-py3-none-any.whl

Download URL milli_piyango-1.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c93c7edb01e8f1e2408a971f90f95ba9fc290a21828dc7bcdd750c084b8aea5d
BLAKE2b-256 checksum
How to use checksums
c86b7b8e332f55e0c13dda0e871de62011b6623f034c4bfdb2ad2bce169734f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page