What's Changed
Added Features
* A new CLI option `--verison` now prints the CLI's version. Run `$ matricula-online-scraper --version`. (11)
Fixed or Changed
* ⚠️ _[BREAKING CHANGE]_ The CLI option `--urls` for `fetch parish` was renamed to `--url` (short `-u`). This option allows to specify which URLs of parishes on Matricula should be fetched and can be repeated to use multiple ones, but at least one. E.g. previously you could do `$ matricula-online-scraper fetch parish ./out --urls https://data.matricula-online.eu/en/deutschland/aachen/aachen-hl-kreuz/ --urls https://data.matricula-online.eu/en/slovenia/maribor/bizeljsko/` to fetch all sources of the two specified parishes. However, the singular seems more suited. Hence, it was renamed without any further changes. (#14)
* ⚠️ _[BREAKING CHANGE]_ If you look at the listed sources of any parish in the tabular data section ([example](https://data.matricula-online.eu/de/deutschland/aachen/aachen-hl-kreuz/)) you will notice that two adjacent rows are related – if expanded. While the first row contains a URL to images, an accession number, a type and a date range, another row can be unfolded below the main row, if clicked on the book icon in the main row. This additional collapsable row contains extra information. It was already scraped and included before. But because those fields are inconsistent, not all could be included. Now, all fields will be scraped and included. The fields `type` and `comment` were hardcoded to be scraped and are now removed explicitly. However, both and more will be included anyway, just dynamically named in the output according to the Matricula reference row. (#13)
* Sometimes the pages of parishes are blank ([example](https://data.matricula-online.eu/en/italien/bozen-brixen/Suedtirol_01/)). This is mostly intentional and instead of all sources provided in a table on the page in question, an external URL to a third party service is given. Most often the own system of the parish. Previously, these pages were ignored. Now the URLs are scraped too and included in the output `{ "external_url": "http://some.other.parish/" }` (#13)
Most notably changes are listed above. See the full changelog for all changes.
**Full Changelog**: https://github.com/lsg551/matricula-online-scraper/compare/v0.1.0...v0.2.2