GithubHelp home page GithubHelp logo

python-alacard's Introduction

python-alacard

Python library to check Euroticket à la card balance and recent history.
https://www.euroticket-alacard.pt/

This implementation simulates the browser's behaviour using standard HTTP requests along with screen scraping. After official mobile apps being released the best way to retrieve this information is to use the REST API described in my euroticket-alacard-rest-api repository.

Requirements

  • Python 3.x

Usage

$ ./alacard.py -h
usage: alacard.py [-h] -u username -p password [-m]

Check Euroticket à la card balance and history.

optional arguments:
  -h, --help   show this help message and exit
  -u username  the card number
  -p password  the card password
  -m           display card movements

Example

$ ./alacard.py -u 1234567890123456 -p 235711 -m

Holder Name:         John Doe
Card Number:         1234567890123456
Expiration Date:     06/2016
Outstanding Balance: 126.29
Current Balance:     105.84

| Id    | Date      | Type      | Description             | Debit  | Credit | Balance |
| 11111 | 8/Out/13  | Movimento | NAMUR           LISBOA  | €11.50 | €0.00  | 105.84  |
| 22222 | 7/Out/13  | Movimento | EL CORTE INGLES LISBOA  | €7.95  | €0.00  | 117.34  |
| 33333 | 12/Set/13 | Movimento | REST CHINES     LISBOA  | €7.15  | €0.00  | 125.29  |
| 44444 | 10/Set/13 | Movimento | CONTINENTE      AMADORA | €18.94 | €0.00  | 132.44  |
| 55555 | 8/Set/13  | Movimento | R C SANCHES     LISBOA  | €7.40  | €0.00  | 151.38  |

Avoiding Repetition

When you get tired of typing in you card number and password, you may create an alias.

$ alias showmethemoney='./alacard.py -u 3141592653589793 -p 577215'
$ showmethemoney
$ showmethemoney -m

python-alacard's People

Contributors

marmelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.