docs: update README
This commit is contained in:
@@ -28,12 +28,15 @@ BACKBLAZE_PASSWORD=your_password
|
|||||||
INVOICE_VAT_ID=DE123456789
|
INVOICE_VAT_ID=DE123456789
|
||||||
INVOICE_DOCUMENT_TYPE=Invoice
|
INVOICE_DOCUMENT_TYPE=Invoice
|
||||||
INVOICE_COMPANY=My Company GmbH
|
INVOICE_COMPANY=My Company GmbH
|
||||||
INVOICE_NOTES=Internal ref: 12345
|
INVOICE_NOTES=Internal ref: 12345\nLine 2\nLine 3
|
||||||
|
|
||||||
OUTPUT_DIR=./invoices
|
OUTPUT_DIR=./invoices
|
||||||
BROWSER_HEADLESS=true
|
BROWSER_HEADLESS=true
|
||||||
|
DOWNLOAD_ALL_YEARS=false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Notes can include literal `\n` to create line breaks in the invoice “Other” field.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -50,6 +53,7 @@ python main.py
|
|||||||
--document-type TYPE Document type to select
|
--document-type TYPE Document type to select
|
||||||
--company NAME Company name to fill
|
--company NAME Company name to fill
|
||||||
--notes TEXT Notes to fill on invoices
|
--notes TEXT Notes to fill on invoices
|
||||||
|
--all-years Download invoices for all years (default: first year only)
|
||||||
-v, --verbose Verbose logging
|
-v, --verbose Verbose logging
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -59,6 +63,6 @@ CLI arguments override `.env` values.
|
|||||||
|
|
||||||
1. Logs in to `secure.backblaze.com`
|
1. Logs in to `secure.backblaze.com`
|
||||||
2. Navigates to the billing page
|
2. Navigates to the billing page
|
||||||
3. Iterates over all billing groups and years
|
3. Iterates over all billing groups and the selected year(s) (first year by default)
|
||||||
4. For each invoice, opens the invoice page, fills the configured fields, and exports to PDF
|
4. For each invoice, opens the invoice page, fills the configured fields, and exports to PDF
|
||||||
5. Skips already-downloaded invoices
|
5. Skips already-downloaded invoices
|
||||||
|
|||||||
Reference in New Issue
Block a user