first-data-crawler-pdf/README.md

50 lines
1.1 KiB
Markdown
Raw Normal View History

2019-03-27 17:00:04 +01:00
# CLI for First Data conversion rates
## Requirements
2020-07-18 20:22:33 +02:00
* python3 with modules `PyPDF3`, `appdirs`, `mechanize`, `dateutil`
2019-03-27 17:00:04 +01:00
## Usage:
`python3 crawl.py [-t {VISA,MC}] [-g ISO_DATE] [-r] {-i | CURRENCY AMOUNT}`
### OPTIONS
#### `AMOUNT`
This must be a number.
2020-07-18 20:22:33 +02:00
2019-03-27 17:00:04 +01:00
#### `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)
2020-07-18 20:22:33 +02:00
#### `-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|
|:---|:---|:---|:---|:---|
2019-03-27 17:00:04 +01:00
#### `-i`, `--interactive`
Calculate interactively on stdin
2019-05-04 21:05:47 +02:00
##### `q`, `exit`, `quit`
Quit the program.
2020-07-18 20:22:33 +02:00
2019-03-27 17:00:04 +01:00
##### `AMOUNT CURRENCY`
Convert AMOUNT euros to CURRENCY.
2020-07-18 20:22:33 +02:00
2019-03-27 17:00:04 +01:00
##### `CURRENCY AMOUNT`
Convert AMOUNT CURRENCY to euros.
2020-07-18 20:22:33 +02:00
2019-05-04 21:05:47 +02:00
##### `d`, `date`
Print the date the data is from.
2019-03-27 17:00:04 +01:00