Go to file
2020-04-28 16:23:53 +02:00
.gitignore Initial commit 2019-03-27 17:05:39 +01:00
backend.py wip 2020-04-28 16:23:53 +02:00
crawl.py wip 2020-04-28 16:23:53 +02:00
README.md Help in interactive mode 2019-05-04 21:05:47 +02:00
requirements.txt wip 2020-04-28 16:23:53 +02:00
utils.py PEP8ing whitespace 2019-06-21 22:16:16 +02:00

CLI for First Data conversion rates

Requirements

  • python3 with modules PyPDF3, appdirs, mechanize

Usage:

python3 crawl.py [-t {VISA,MC}] [-g ISO_DATE] [-r] {-i | CURRENCY AMOUNT}

OPTIONS

AMOUNT

This must be a number.

CURRENCY

This must be the three-letter currency abbreviation, case is irrelevant.

-t, --card-type

Choose the card type (MasterCard or VISA)

-g, --fetch-date

Date to get values for (default: yesterday, Friday on Sat-Mon)' Format: ISO date

-r, --direction

Reverse conversion direction (EUR to specified currency, instead of specified currency to EUR)

-i, --interactive

Calculate interactively on stdin

q, exit, quit

Quit the program.

AMOUNT CURRENCY

Convert AMOUNT euros to CURRENCY.

CURRENCY AMOUNT

Convert AMOUNT CURRENCY to euros.

d, date

Print the date the data is from.