You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Christopher Teutsch cf1b6dade9 Add quiet flag for usage in cronjobs 3 years ago
.gitignore Initial commit 4 years ago
README.md Add quiet flag for usage in cronjobs 3 years ago
crawl.py Add quiet flag for usage in cronjobs 3 years ago
requirements.txt Add CSV writing feature 3 years ago
utils.py Add quiet flag for usage in cronjobs 3 years ago

README.md

CLI for First Data conversion rates

Requirements

  • python3 with modules PyPDF3, appdirs, mechanize, dateutil

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)

-c, --csv

Write the currency results to standard output, formatted as CSV:

ISO4217 abbreviation Full German name Asking rate Bidding rate Date the rate was valid on

-q, --quiet

Do not output informational messages such as "Parsing..." or "Downloading..."

-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.