Skip to main content

A Python API and script for retrieving Play Whe results.

Project description

A Python API and script for retrieving Play Whe results.

The library provides a Python interface for retrieving Play Whe results from the National Lotteries Control Board (NLCB) website.

The script uses the library to provide a tool for the retrieval of Play Whe results.

Example usage:

from playwhe import Mark, PlayWhe

# display the standard names associated with each number
for n in range(Mark.lowest, Mark.highest + 1):
    print "%2d - %s" % (n, Mark.get_name_of_number(n))

p = PlayWhe()

# retrieve and display all the results for the month of April in the year 2011
print "\n\n".join(map(lambda r: r.prettyprint(), p.results_for_month(2011, 4)))

# retrieve and display the results for April 2nd, 2011
print "\n\n".join(map(lambda r: r.prettyprint(), p.results_for_day(2011, 4, 2)))

# retrieve and display the two most recent results
print "\n\n".join(map(lambda r: r.prettyprint(), p.results()))

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

playwhe-0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

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