Skip to content

wyounas/national_savings_draw_pakistan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PCLI (A command line script to see if you've won a prize bond)

You can use this command line script to search your prize bond draws on National Savings' website. It's particularly useful if you have many prize bonds and quickly want to see if you've won anything.

screen shot

Why did I build this?

I will add details soon.

Installation

Python

I built this on Python 3.4.5. So first we need to install Python.

On Mac, I used Homebrew to install Python e.g. one can use this command:

To install on Windows, you can download the installer from here. Once downloaded this installer can be run to complete Python's installation.

For Ubuntu you might find this resource useful.

Virtual environment

Now it's time to create a virtual environment (assuming you cloned the code under ~/code/pkli).

First line in the above snippet creates a virtual environment named venv under ~/code/pkli. The second command activates the virtual environment.

In case you need more help with creating a virtual environment this resource can prove to be useful.

Install the required libraries

To install the required libraries please run this:

> pip install -r requirements.txt

Usage

Save your prize bond numbers in the NUMBERS list. And run this script like this:

> python prize_bonds.py

As of May 2020, this is working. Unfortuantely, it will break in case National Savings make changes to their website.

Authors

Waqas Younas.

Email: I can be reached at waqas.younas@gmail.com. Twitter: http://twitter.com/wyounas

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages